An ordered list displays a list of items using numbers or letters in either ascending or descending order.
The <ol> ………. </ol> tag is used to define an ordered list ; whereas the <li> ….. </li> tag is used to define the items of list.
Ex:-
<ol>
<li>Linux</li>
<li>Windows</li>
<li>Mac</li>
<li>Android</li>
</ol>
Attribute | Value |
Type | 1, A, a, I, i |
Start | Any numeric value |
Reversed | Reversed |
<ol type=1>
<li>Linux</li>
<li>Windows</li>
<li>Mac</li>
<li>Android</li>
</ol>