HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

ol

Description

The ol element for HTML 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

NameValueDescription
reversedreversed | emptyDescending list if present, ascending list if not present
startintegerOrdinal value of the first list item

CSS

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

Examples

1 · HTML

2 · reversed

3 · start

4 · CSS

5 · JS