HTML and CSS Reference
In-Depth Information
an ordered list. The
type
attribute sets the actual numbering style. For
example, the following ordered list starts numbering items at 8, but be-
cause the style of numbering is set to
i
, the first number is the lower-
case Roman numeral "viii." Subsequent items are numbered with the
same style, and each value is incremented by 1, as shown in this HTML
example, and rendered as shown in
Figure 7-3
:
[*]
[*]
Notice that we don't include the
</li>
end tag in the HTML example but do in all the XHTML ones.
Some end tags are optional with HTML but must be included in all XHTML documents.
<ol start=8 type="i">
<li> This is the Roman number 8.
<li> The numerals increment by 1.
<li> And so forth...
</ol>
Figure 7-3. The start and type attributes work in tandem
The type and value of individual items in a list can be different from
those of the list as a whole, described in
section 7.3.1
later in this
chapter. As mentioned earlier, the
start
and
type
attributes are deprec-
ated in HTML 4 and XHTML. Consider using stylesheets instead.