contents.gifindex.gifprev1.gifnext1.gif

pueblo00000000.gif <ol>...</ol>

The Ordered List element is used to present a numbered list of items, sorted by sequence or order of importance. An ordered list must begin with the <ol> element which is immediately followed by a <li> (list item) element.

A <ol> element is rendered with a slight extra left indent and each list item is numbered.

Attributes

COMPACT

The ordered list type can take the COMPACT attribute, which suggests that a compact rendering be used, because the list items are small and/or the entire list is large.

START

The START attribute specifies the value for the first item in the list. The value is always specified using normal digits.

TYPE

The TYPE attribute may be used on the <li> tag to specify how list items should be marked. The following values are supported:

type=A Capital letters. e.g. A, B, C ...

type=a Small letters. e.g. a, b, c ...

type=I Large roman numerals. e.g. I, II, III ...

type=i Small roman numerals. e.g. i, ii, iii ...

type=1 The default numbers. e.g. 1, 2, 3 ...

Examples

The following example creates an ordered list, starting the first element with the value ‘5’ and using capital roman numerals. The last item is numbered with the value 10:

<ol type=I start=5>

<li>Fifth item

<li>Sixth item

<li>Seventh item

</ol>

Also see

<li>

<ul>