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

ol

Description

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

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 · reversed

2 · start

3 · CSS

4 · JS

HomeMenu