ⓘ ol – ordered list # T
The
ol
element represents
a list (or sequence) of items; that is, a list in which the
items are intentionally ordered, such that changing the order
would change the meaning of the list.
Permitted attributes #
-
ⓘ
global attributes
- Any attributes permitted globally.
-
ⓘ
start =
integer
CHANGED
#
- The ordinal value of the first list item.
- The
start
attribute on the
ol
element was deprecated in a previous version of HTML,
but is no longer deprecated, as it has meaning and is not
simply presentational.
-
ⓘ
reversed =
"reversed"
or "" (empty string) or empty
NEW
#
- If present, indicates that the list is a descending
list (…, 3, 2, 1).
- If not present, indicates that the list is an ascending
list (1, 2, 3, …).
Additional constraints and admonitions #
Permitted parent elements #
any element that can contain
flow elements
Typical default display properties #
ol {
display: block;
list-style-type: decimal;
margin: 1em 0 1em 0;
padding-start: 40px; }