View video tutorial

HTML <ol> Tag

HTML

The <ol> tag defines an ordered list.

HTML <ol> Tag


➔ The <ol> item represents an ordered list of items.

➔ An ordered list item can be numeric or alphabetical.

➔ The <ol> element should include at least one <li> element.

Element Attributes

Attribute Value Description
reversed reversed This specifies that the order of the list should be reversed.
start number This specifies the beginning of the list.
type 1
A
a
I
i
This specifies the type of marker to use in the list.

Supported Global attributes

Global attributes may be applied on all elements, although some elements may have no effect on them.

<accesskey>, <class>, <contenteditable>, <contextmenu>, <data-*>, <dir>, <draggable>, <dropzone>, <hidden>, <id>, <lang>, <spellcheck>, <style>, <tabindex>, <title>, <translate>.

Learning with HTML Editor "Try it Now"

You can edit the HTML code and view the result using online editor.

Example

<h2>An Ordered List</h2>
<ol>
    <li>Geitost</li>
    <li>Camembert Pierrot</li>
    <li>Mascarpone Fabioli</li>
</ol>
Try it Now »

Click on the "Try it Now" button to see how it works.