HTML <ol> type Attribute
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">
Advertisement
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:
- One
- Two
- Three
Choose a list style type:
disc
circle
square
decimal
decimal-leading-zero
lower-roman
upper-roman
lower-greek
lower-alpha
lower-latin
upper-alpha
upper-latin
armenian
georgian
none
inherit
Enter list start:
CSS:
<One>
<Two>
<Three>
<ol>