HTML and CSS Reference
In-Depth Information
Input
▼
<h1>
The days of the week in French
</h1>
<ol style=”list-style-type: upper-roman”>
<li>
Lundi
</li>
<li>
Mardi
</li>
<li>
Mercredi
</li>
<li>
Jeudi
</li>
<li>
Vendredi
</li>
<li>
Samedi
</li>
<li>
Dimanche
</li>
<
/ol
>
.
Output
FIGURE 5.2
An ordered list
displayed using
an alternative
numbering style.
You can also use the
list-style-type
property or the
type
attribute with the
<li>
tag,
changing the numbering type in the middle of the list. When the numbering style is
changed in an
<li>
tag, it affects that item and all entries following it in the list. Using
the
start
attribute, you can specify the number or letter with which to start your list.
The default starting point is 1, of course. You can change this number by using
start
.
<ol start=“4”>
, for example, would start the list at number 4, whereas
<ol type=“a”
start=“3”>
would start the numbering with
c
and move through the alphabet from there.
The value for the
start
attribute should always be a decimal number, regardless of the
numbering style being used.
For example, you can list the last 6 months of the year and start numbering with the
Roman numeral
VII
. The results appear in Figure 5.3.
Input
▼
<p>
The Last Six Months of the Year (and the Beginning of the Next Year)
:</p>
<ol style=”list-style-type: upper-roman” start=“7”>
<li>
July
</li>
<li>
August
</li>
<li>
September
</li>
<li>
October
</li>
<li>
November
</li>


