HTML <ol> type Attribute

❮ HTML <ol> tag

Example

<ol type="i">
  <li>One</li>
  <li>Two</li>
  <li>Three</li>
</ol>

Meaning

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




Status







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




CSS:


  <One>
  <Two>
  <Three>
<ol>
❮ HTML <ol> tag