Starlit Daily

📚 › HTML: build the structure of a web page

5. Lists: ordered, unordered and nested

An unordered list uses ul and shows bullets. An ordered list uses ol and shows numbers. Each item is an li element.

A list can sit inside another list item. This is called nesting, and it is how you build outlines and menus with sub-items.

Show example

<ol>
  <li>Wake up</li>
  <li>Study
    <ul>
      <li>HTML</li>
    </ul>
  </li>
</ol>

✍️ Your turn

Make an unordered list with Apples and Mangoes, and inside Mangoes add a nested list with Alphonso.

← Back to course