- Ordered List (
<ol>
): This list displays items in a specific, sequential order (usually numbered). It’s used when the sequence of items matters. For example:
<ol>
<li>First item</li>
<li>Second item</li>
</ol>
- Unordered List (
<ul>
): This list displays items without any specific order, typically using bullets. It is used when the sequence of items is not important. For example:
<ul>
<li>Apple</li>
<li>Banana</li>
</ul>