HTML lists allow us to organize and display items in a structured format. There are three main types of lists:
1️⃣ Ordered List (<ol>
) → Numbered list
2️⃣ Unordered List (<ul>
) → Bulleted list
3️⃣ Description List (<dl>
) → Term and description list
<ol>
)An ordered list displays items in a specific sequence using numbers or letters.
<ol>
<li>Step 1: Preheat the oven</li>
<li>Step 2: Mix ingredients</li>
<li>Step 3: Bake the cake</li>
</ol>
✔ Each <li>
(list item) represents one step.
✔ The browser automatically numbers the items.
You can customize the numbering style using the type
attribute: