ol

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.

Attributes

<ol attribute-name="attribute-value"></ol>
Name Value Description
reversed reversed | empty Descending list if present, ascending list if not present - HTML5
start integer Ordinal value of the first list item

Global

CSS

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

Example | reversed

Example | start

Example | CSS

External

W3C HTML 4.01 Specification

W3C HTML5

W3C HTML 5.1