Example Set the bullet points to roman numbers in an ordered list: <ol type="I"> <li>Coffee</li>...
Example
Set the bullet points to roman numbers in an ordered list:<ol type="I"> <li>Coffee</li> <li>Tea</li> <li>Milk</li> </ol> |
Definition and Usage
The type attribute specifies which kind of bullet points will be used in an ordered list.Browser Support
The type attribute is deprecated, but still supported in all major browsers.Compatibility Notes
The type attribute of the ol element was deprecated in HTML 4.01, and is not supported in XHTML 1.0 Strict DTD.Use CSS instead.
CSS syntax: <ol style="list-style-type:upper-roman">
Syntax
<ol type="value"> |
Attribute Values
Value | Description |
---|---|
1 | Numerical ordered list (this is default) (1, 2, 3, 4) |
a | Alphabetically ordered list, lowercase (a, b, c, d) |
A | Alphabetically ordered list, uppercase (A, B, C, D) |
i | Roman numbers, lowercase (i, ii, iii, iv) |
I | Roman numbers, uppercase (I, II, III, IV) |