HTML and CSS Reference
In-Depth Information
tag. Most browsers tolerate violations to this rule, but you can't hold
the browser responsible for compliant rendering of exceptional cases,
7.3.1. Changing the Style and Sequence of Individual List
Just as you can change the bullet or numbering style for all of the items
in an unordered or ordered list, you can change the style for individu-
al items within those lists. With ordered lists, you also can change the
value of the item number. As you'll see, the combinations of changing
style and numbering can lead to a variety of useful list structures, par-
ticularly when included with nested lists. Do note, however, that the
standards have deprecated these attributes in deference to their CSS
counterparts. The type attribute
Acceptable values for the type attribute in the <li> tag are the same as
the values for the appropriate list type: items within unordered lists may
have their type set to circle, square , or disc , and items in an ordered
list may have their type set to any of the values shown previously in
Table 7-1 .
Be careful. With earlier browsers, such as Netscape Navigator and Inter-
net Explorer versions 4 and earlier, a change in the bullet or numbering
type in one list item similarly affected subsequent items in the list. Not
so for HTML 4-compliant browsers, including Netscape version 6, Inter-
net Explorer versions 5 and later, Firefox, and Opera! The type attrib-
ute's effects are acute and limited to only the current <li> tag. Subse-
quent items revert to the default type; each must contain the specified
The type attribute changes the display style of the individual list item's
leading number, and only that item, but not the value of the number,
which persistently increments by one. Figure 7-4 shows the effect that
Search WWH ::

Custom Search