Name
<ol> — NN: 2, 3, 4 • MSIE: 2, 3, 4, 5 • HTML 4 • WebTV • Opera3
Synopsis
<ol>...</ol>
Defines the beginning and end of an ordered (numbered) list, which
consists of list items <li>.
Attributes
compactDisplays the list as small as possible (not many browsers do anything with this attribute).
start=numberStarts the numbering of the list at the specified number, instead of 1.
type=1|A|a|I|iDefines the numbering system for the list as follows:
Type Value
Generated Style
Sample Sequence
1
Arabic numerals (default)
1, 2, 3, 4...
A
Uppercase letters
A, B, C, D...
a
Lowercase letters
a, b, c, d...
I
Uppercase Roman numerals
I, II, III, IV...
i
Lowercase Roman numerals
i, ii, iii, iv...
The
typeattribute has been deprecated by the HTML 4.0 Specification in favor of style sheet controls for list item display.
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access