×

html · level 1 · unit 4 · lesson 3

  1. meet it
  2. guess first
  3. your turn
  4. fix it
  5. nailed it

Tap a green word if you get lost.

meet it

A list can live inside a list item.

Big lists often hold smaller lists, like a packing list with a section for clothes. A list inside another list is called a .

The inner list goes inside an <li>, after its words and before its </li>. The browser indents it and gives it different bullets.

Indent your code to match. Each level inside gets two more spaces, so you can see at a glance what belongs where.

<ul>
  <li>Clothes
    <ul>
      <li>Socks</li>
      <li>Jumper</li>
    </ul>
  </li>
  <li>Snacks</li>
</ul>

Press show my page to see it here.

Indenting does not change the page. It only helps people read your code.