×

html · level 2 · unit 4 · 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

holds one topic and starts with a heading.

A section is a part of a page about one topic, such as Opening times or Prices. Wrap it in <section> and start it with a heading that names the topic.

Headings inside sections still go in order. Under the page's <h1>, each section starts with an <h2>. A smaller topic inside a section starts with an <h3>.

A box that only groups things for looks is a <div>, not a section. A section with no heading is a sign that something is wrong.

<main>
  <h1>Riverside Pool</h1>
  <section>
    <h2>Opening times</h2>
    <p>Every day, 07:00 to 21:00.</p>
  </section>
  <section>
    <h2>Prices</h2>
    <p>Adults £5, children £3.</p>
    <h3>Family tickets</h3>
    <p>Two adults and two children for £14.</p>
  </section>
</main>

Press show my page to see it here.

An article is a whole piece. A section is one part of something bigger.