- HTML <ol> tag define ordered list(list of Ordered items). HTML <ol> tag is a Container tag.
<ol> Tag Attributes
HTML <ol> tag specified Order list display list of item and its attribute help to change the type of order list.
Attributes | Value | Description |
---|---|---|
type | 1 a A i I | Arabic number, Lowercase alphabet, Uppercase alphabet, Lowercase roman numeral, Uppercase roman numeral, Default value is "1". |
start | "1" | define start sequence number of the list. |
<li> Tag Attributes
HTML <li> tag specified list items and its attribute help to change the type of order list.
Attributes | Value | Description |
---|---|---|
type | 1 a A i I | Arabic Number, Lowercase alphabet, Uppercase alphabet, Lowercase roman numeral, Uppercase roman numeral, Default value is "1". |
start | "1" | define start sequence number of the list. |
Example
<html> <head> </head> <body> <ol type="1" value="1"> <li>Arabic Number</li> <li>Arabic Number</li> </ol> <ol type="a" value="1"> <li>Lower Alphabet</li> <li>Lower Alphabet</li> </ol> <ol type="A" value="1"> <li>Upper Alphabet</li> <li>Upper Alphabet</li> </ol> <ol type="i" value="1"> <li>Lower Roman numeral</li> <li>Lower Roman numeral</li> </ol> <ol type="I" value="1"> <li>Upper Roman numeral</li> <li>Upper Roman numeral</li> </ol> </body> </html>