ⓘ ol – ordered list # T
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 #
- Any attributes permitted globally.
- The ordinal value of the first list item.
attribute on the
element was deprecated in a previous version of HTML,
but is no longer deprecated, as it has meaning and is not
or "" (empty string) or empty
- 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
Typical default display properties #
margin: 1em 0 1em 0;
padding-start: 40px; }