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
compact
Displays the list as small as possible (not many browsers do anything with this attribute).
start=
number
Starts the numbering of the list at the specified number, instead of 1.
type=1|A|a|I|i
Defines 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
type
attribute has been deprecated by the HTML 4.0 Specification in favor of style sheet controls for list item display.
Get HTML Pocket Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.