×

html · level 1 · unit 6 · lesson 2

  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

<nav> marks the menu that helps people get around.

means finding your way around. On a website, that is the menu of links to the main pages. Wrap it in a <nav> landmark so screen readers can find it fast.

Inside goes the menu you built before: a <ul> with an <a> in each <li>. The <nav> usually sits inside the <header>, near the top of the page.

Save <nav> for the main menu. A single link inside a paragraph does not need one.

<header>
  <h1>Pip's Plants</h1>
  <nav>
    <ul>
      <li><a href="https://example.com/">Home</a></li>
      <li><a href="https://example.com/shop">Shop</a></li>
    </ul>
  </nav>
</header>

Press show my page to see it here.

Count the layers: the link is in an item, in a list, in the nav, in the header.