Description
Sample Code : Navigation bar using ul tag
Ordered list in HTML displays the sequence of numbers in front of each list item. Its code example is shown below.
<ol>
<li>Motorbike</li>
<li>Car</li>
<li>Bus</li>
<li>Truck</li>
</ol>
Output :
- Motorbike
- Car
- Bus
- Truck
Unordered list in HTML displays the bullet in front of each list item. Its code example is shown below.
<ul>
<li>Motorbike</li>
<li>Car</li>
<li>Bus</li>
<li>Truck</li>
</ul>
Output :
- Motorbike
- Car
- Bus
- Truck