×

html · level 1 · unit 6 · lesson 1

  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

<header>, <main> and <footer> mark out a page.

A <div> says nothing about what it holds. A is a box with meaning. Like signs in a shopping centre, landmarks tell browsers and screen readers what each area is for.

<header> holds the top of the page, such as the site's name. <main> holds the main content, and a page has only one. <footer> holds the bottom, like who made it.

Landmarks do not change the look. But screen reader users can jump straight to one, so they skip what they do not need.

<header>
  <h1>Sam's Kitchen</h1>
</header>
<main>
  <p>Today: tomato soup.</p>
</main>
<footer>
  <p>Made by Sam</p>
</footer>

Press show my page to see it here.

The <header> landmark is not the same as <head>, which holds facts about the page.