<ol> tag in HTML
The <ol> tag stands an ordered list in HTML document. The <ol> tag is used to defines a list that can be start with a numerical or alphabetical.
- Open and close tag required of <ol>.
Example of <ol> tag
Result Look Like
- Apple
- Green Apple
- Banana
- Grapes
- Apple
- Green Apple
- Banana
- Grapes
<ol> Tag Browser Support
Element |
Chrome |
Edge |
Firefox |
Safari |
Opera |
<ol> |
Yes |
Yes |
Yes |
Yes |
Yes |
Global Attributes
Event Attributes
Attributes
The "compact" attribute is not supported in HTML5:
Attribute |
Value |
Description |
reversed |
reversed |
Defines that the list order should be descending (7,6,5...) |
type |
circle
square
disc
1
A
a
I
i |
Defines which kind of bullet point will be used |
start |
number |
Defines the value of a list item (only for <ol> lists). |