HTML <ol> Tag


The <ol> tag in HTML creates an ordered list in the document.

The <ol> element is also a common name for this tag.

An ordered list is defined by the <ol> tag. A numerical or alphabetical order can be used in an ordered list. Each list item is defined using the <li> tag. To style lists, use CSS. Use the <ul> tag for an unordered list.

Syntax

Example

Preview

Attributes

Attribute Value Description
reversed reversed Indicates that the order of the lists should be reversed (9,8,7...)
start number The start value of an ordered list is specified.
type 1  
A  
a  
I  
i
In the list, specify the type of marker to use.

Supported Browsers

Element Chrome Firefox Safari Edge / IE Opera
<ol> Yes Yes Yes Yes Yes