description & Usage
They use the <ol> tag to make a numerical and alphabetical list.
The <li> tag is used to describe the list created by the <ol> tag.
Notes
note: You can use css codes to style your list.
note: To sort an unordered list, use the <ul> tag.
Browser compatibility and Support
# | Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
<ol> |
Attributes
Attributes | Values | Description |
---|---|---|
reversed |
reversed
|
en |
start |
number
|
en |
type |
1,A,a,I,i
|
نوع تگ های مربوطه در سمت را تعیین می کند. |
Global Attributes
The ol tag supports the HTML Global Attributes.
Event Attributes
The ol tag supports the HTML Event Attributes.
More Examples
Default CSS
Most browsers will display the ol tag with the following default style: