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>
Latest posts by vikashdev k (see all)
- PHP OOP: Traits - October 25, 2021
- PHP OOP: Late Static Binding - October 25, 2021
- PHP OOP : Static Members - October 23, 2021