Name
ol
Synopsis
<ol>...</ol>
Defines an ordered (numbered) list, which consists of list items
(li
). The browser or other user
agent inserts item numbers automatically. The start
and type
attributes are deprecated in favor of CSS
controls.
Attributes
Core(id
,
class
, style
, title
),
Internationalization,
Events
-
compact
Deprecated. Displays the list as small as possible (not many browsers do anything with this attribute).
-
start="
number
"
Deprecated. Starts the numbering of the list at
number
instead of at 1.-
type="1|A|a|I|i"
Deprecated. Defines the numbering system for the list shown next.
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 |
Get Web Design in a Nutshell, 3rd Edition 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.