HTML <ol> type Attribute

❮ HTML <ol> tag


<ol type="i">


The type attribute specifies the numbering type

The specified type is used for the entire list unless a different type attribute is used on an enclosed <li> element.

Note: Unless the type of the list number matters (like legal or technical documents where items are referenced by their number/letter), use the CSS list-style-type property instead.

Standard Syntax

<ol type="1|a|A|i|I">

Browser Support


Attribute Values

Value Description
a Specifies lowercase letters
A specifies uppercase letters
i Specifies lowercase Roman numerals
I Specifies uppercase Roman numerals
1 Specifies numbers.

Live Demonstration:

  1. One
  2. Two
  3. Three


❮ HTML <ol> tag