HTML: The Markup Language Reference

olordered 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 contents #

zero or more li elements

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 #

Tag omission #

An ol element must have both a start tag and an end tag.

Permitted parent elements #

any element that can contain flow elements

DOM interface #

interface HTMLOListElement : HTMLElement {
           attribute boolean reversed;
           attribute long start;
           attribute DOMString type;

Typical default display properties #

ol {
display: block;
list-style-type: decimal;
margin: 1em 0 1em 0;
padding-start: 40px; }