← Back to Lessons

Lists in HTML: Ordered and Unordered

Unordered Lists

Use <ul> and <li> for bullet-style lists.

<ul>
<li>List item 1</li>
<li>List item 2</li>
</ul>

Ordered Lists

Use <ol> for numbered lists.

<ol>
<li>Step 1</li>
<li>Step 2</li>
</ol>

Styling Tips

Lists are ideal for showing steps, features, or navigation items in a clean structure.