HTML Inline Style Attribute

The HTML Style attribute

The style attribute is used to insert CSS codes into an HTML element. When we use the attribute directly in a single HTML element tag-name, it is called an inline CSS.


<tagname style="property:value;">


Here, property is CSS property. Example: background-color

Value is the CSS value. Example: powderblue.

					<h6 style="background-color:powderblue;">
This is a paragraph with it’s background color set as Powder blue color.

This is the code used:

					<h6 style="background-color: powderblue;">This is a paragraph with it's background color set as Powder blue color.</h6>
0 0 votes
Article Rating
Notify of
Inline Feedbacks
View all comments