The HTML style attribute is used to apply styles to HTML element, such as background color, font color/text color, fonts, font size, and alignment etc.

The HTML Style Attribute

To set the style of an HTML element, with the help of style attribute.

syntax:

<tagname style=”property1:value1; property2:value2;”>

The tagname is any HTML element like header tags, paragraph tag etc., Style is an attribute in which list of property’s, each property stores specified value assigned with colon (:) and each property its value separated by semicolon (;). that is enclosed double quote marks (“ “). Property is a CSS property. …

SHIVARAJU KOILAKONDA

working as Lecturer in Computer Application at Nagarjuna Govt. College, Nalgonda since 10years

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store