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. Format:
Here, property is CSS property. Example: background-color
Value is the CSS value. Example: powderblue.
This is a paragraph with it’s background color set as Powder blue color.
This is the code used:
This is a paragraph with it's background color set as Powder blue color.