×

html · level 1 · unit 4 · lesson 4

  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 of links makes a .

Most websites have a menu: a list of links to their main pages. In HTML, a menu is a <ul> where every <li> holds one <a>.

This is nesting again. The link sits inside the item, and the item sits inside the list. Close them in reverse order: </a>, then </li>.

Keep menu words short and clear, one or two words that say where each link goes.

<ul>
  <li><a href="https://example.com/">Home</a></li>
  <li><a href="https://example.com/recipes">Recipes</a></li>
  <li><a href="https://example.com/contact">Contact</a></li>
</ul>

Press show my page to see it here.

Every menu item follows the same pattern, so copy one line and change the words.