html · level 3 · unit 5 · lesson 3
- meet it
- guess first
- your turn
- fix it
- nailed it
Tap a green word if you get lost.
meet it
Your headings make an outline of the whole page.
Read only the headings of a page, in order, and you get its , like the contents page of a book. Screen reader users jump through it, and search engines use it to see what matters.
One <h1> names the page. Each <section> starts with its own heading, one level below the heading it belongs under. Never pick a level for its size: the outline is about meaning.
A under a heading is not a heading itself. Wrap both in <hgroup>, with the heading in a heading tag and the tagline in a <p>, so the tagline stays out of the outline.
<header>
<hgroup>
<h1>Pip's Plants</h1>
<p>Green friends for every room</p>
</hgroup>
</header>
<main>
<section>
<h2>New in this week</h2>
<p>Fig trees, ferns and a very small cactus.</p>
</section>
<section>
<h2>Plant care</h2>
<p>Most plants die from too much water, not too little.</p>
</section>
</main> Press show my page to see it here.
<hgroup> adds no look of its own. It only says that the heading and the tagline belong together.
guess first
How many headings are in this page's outline?
Guess before you run it. Wrong guesses are how you learn, and nothing is marked.
<hgroup>
<h1>Night Owl Books</h1>
<p>Open until midnight</p>
</hgroup>
<section>
<h2>Staff picks</h2>
<p>Three books we could not put down.</p>
</section>
<section>
<h2>Events</h2>
<p>Late-night readings every Friday.</p>
</section>
your turn
Your turn. Group the heading and tagline.
Wrap the heading and tagline in an <hgroup>, using the blanks on lines 1 and 4. Then make the tagline on line 3 a <p>, so it leaves the outline.
Press show my page to see it here.
- the heading sits in the
<hgroup>not checked yet - the tagline is a paragraphnot checked yet
- the outline holds two headingsnot checked yet
fix it
Two headings claim to name the page. Can you fix it?
Press show my page to see it here.
- the page has one
<h1>not checked yet - each section starts with an
<h2>not checked yet
- Read the outline. How many headings say they name the whole page?
- Only one
<h1>names the page. Sections sit one level below it. - Change
<h1>Join the club</h1>on line 3 to<h2>Join the club</h2>.
nailed it
your page has a clear outline. :D
- The headings, in order, make the document outline.
- One
<h1>, and each section starts with a heading. <hgroup>keeps a tagline with its heading.
new words in your collection
- document outline
- tagline
This lesson isn’t saved. A free account remembers every lesson you finish.