Menu Riverview Church

OL

The ol element represents a list of items, where the items have been intentionally ordered, such that changing the order would change the meaning of the document.

SYNTAX

HTML

<ol attribute-name="attribute-value"></ol>

ATTRIBUTES

Global

NAME VALUE DESCRIPTION
reversed reversed | empty Descending list if present, ascending list if not present
start integer Ordinal value of the first list item

CSS

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

EXAMPLES

REVERSED

START

CSS

Web Hypertext Application Technology Working Group (WHATWG)