HTML and CSS Reference
In-Depth Information The style and class attributes
The style attribute for the <li> tag creates an inline style for the ele-
ments enclosed by the tag, overriding any other style rule in effect. The
class attribute lets you format the content according to a predefined
class of the <li> tag; its value is the name of that class. [ Inline Styles:
The style Attribute, 8.1.1 ] [ Style Classes, 8.3 ] The class, dir, id, lang, event, style, and title attributes
You can apply these attributes to individual list items; they have similar
effects for ordered and unordered lists. [ The class and style attributes, ] [ The lang and dir attributes, ] [ The id and title attrib-
utes, ] [ The event attributes, ]
Search WWH ::

Custom Search