×

html · level 2 · unit 6 · 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 jumps keyboard users past the menu.

Many people move around a page with the instead of a mouse. Each press moves to the next link or box. A menu of 20 links means 20 presses on every page before reaching anything new.

A skip link fixes this. Make it the very first thing in <body>: a link to the id of your <main>, such as href="#content". One press of Enter jumps past the whole menu.

Many sites hide it until the Tab key reaches it. Here it stays in plain sight.

<body>
  <a href="#content">Skip to content</a>
  <header>
    <nav aria-label="Main">
      <a href="https://example.com/shop">Shop</a>
      <a href="https://example.com/visit">Visit</a>
      <a href="https://example.com/cafe">Café</a>
    </nav>
  </header>
  <main id="content">
    <h1>Fern Hill Farm</h1>
    <p>Meet the lambs every spring.</p>
  </main>
</body>

Press show my page to see it here.

Press Tab on a site you use often. Does a Skip to content link appear?