Content sectioning (section, article, aside), online

Six activities your students do on their own devices. See who's finished, and their scores.

Content sectioning (section, article, aside) in one minute

What students need to know

The product announcement is self-contained - it could be shared or syndicated independently. That is the defining quality of <article>. Related article links supplement the main content without being essential to it - a perfect use of <aside>.

<section> is the semantic choice for thematic groupings. <div> is a generic container with no semantic meaning. <section> should generally start with an h2-h6 heading to label its topic. A section without a heading may be better served by a <div>.

Mistakes students make

  • HTML tag names must be lowercase. <SECTION> should be written as <section>.
  • The article opening tag appears twice. The second one should be the content - or the closing tag is missing a forward slash: </article>.
  • HTML tag names must be lowercase. <ASIDE> and </ASIDE> should be written as <aside> and </aside>.
  • The class attribute value must be in double quotes. class news (without quotes) is invalid - write class="news".

Discover other journeys with this module

What students will learn in this module

Every question in Module 23

Quick questions

  1. Which element groups thematically related content under a heading?A<section>B<div>
  2. Which element marks a self-contained piece of content like a blog post?A<article>B<section>
  3. What is <aside> used for?AThe page sidebar that always appears on the leftBSupplementary content related to but not essential to the main content
  4. True or false: <section> elements should typically contain a heading.ATrueBFalse
  5. True or false: <ARTICLE> with capital letters is valid HTML.ATrueBFalse

Key terms

Students type the meaning of:

  • <article>

Match the pairs

<section>
  <h2>Sports</h2>
  <p>Latest sport news.</p>
</section>
Match it to what it does
<article>
  <h3>Match report</h3>
  <p>Team A won.</p>
</article>
Match it to what it does
<article> is for self-contained content that could stand alone, like a blog post or news storyMatch it to what it does
<aside> holds supplementary content related to but not essential to the surrounding contentMatch it to what it does
<SECTION>
  <h2>Topic</h2>
</SECTION>
Match it to what it does
<aside>Main article content goes here.</aside>Match it to what it does

Fill in the blanks

  1. <___>
      <h2>Blog</h2>
      <p>Posts here.</p>
    </section>

    Hint: Type the semantic element that groups thematically related content

  2. <___>
      <h2>My Post</h2>
      <p>Post content.</p>
    </article>

    Hint: Type the semantic element for a self-contained piece of content like a blog post

  3. <___>
      <h3>Related links</h3>
      <p>See also.</p>
    </aside>

    Hint: Type the semantic element for supplementary content beside the main flow

  4. <section id="news">
      <h2>Latest</h2>
    </___>

    Hint: Type the element name for the closing tag of this content section

  5. <section>
      <___>
        <p>Post.</p>
      </article>
    </section>

    Hint: Type the semantic element for a self-contained post nested inside the section

Spot the error

Question 1

A<SECTION>B  <h2>About Us</h2>C  <p>Our story.</p>D</section>

Question 2

A<main>B  <article><article>C  <p>Blog post.</p>D  </article>E</main>

Question 3

A<main>B  <section>C    <ASIDE>Related links.</ASIDE>D  </section>E</main>

Question 4

A<main>B  <section id="news">C    <h2>Latest</h2>D    <article class news>E      <p>Story here.</p>F    </article>

Question 5

A<main>B  <section>C    <h2>Topics</h2>D    <p>Introduction.</p>E    <aside class=note>F  </section>