The Style Attribute
Another way of specifying style is to include the rule as the value for a style attribute in any HTML element.
Just like every HTML element can contain a class
and id
attribute, every HTML element have a style
attribute. This value takes a string, formatted as valid CSS.
NOTE: Valid CSS will be discussed over the next few pages.
- Previous
- Next