Content sectioning (section, article, aside)

Tip: Choose Save as PDF in the print dialog to download. Use A4 paper size.

This Content sectioning (section, article, aside) worksheet is part of the HTML and CSS Journey journey. Print it as a booklet?

Content sectioning (section, article, aside)

Name:
Date:
Class:

Quick Questions

Shade in the A or B circle for each question.

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?
A The page sidebar that always appears on the left
B Supplementary content related to but not essential to the main content
4. True or false: <section> elements should typically contain a heading.
A True
B False
5. True or false: <ARTICLE> with capital letters is valid HTML.
A True
B False

Match the Pairs

Draw a line connecting each item on the left to its match on the right.

Left columnRight column
1<section> <h2>Sports</h2> <p>Latest sport news.</p> </section> AA self-contained piece of content - this match report could be syndicated or read independently of the surrounding page
2<article> <h3>Match report</h3> <p>Team A won.</p> </article> B<aside> <h3>Related articles</h3> <a href="more.html">Read more</a> </aside>
3<article> is for self-contained content that could stand alone, like a blog post or news story CTag names must be lowercase - <SECTION> and </SECTION> should be <section> and </section>
4<aside> holds supplementary content related to but not essential to the surrounding content D<article> <h2>New product launch</h2> <p>Details here.</p> </article>
5<SECTION> <h2>Topic</h2> </SECTION> E<aside> is for supplementary content, not primary content - use <article> or <section> for main content
6<aside>Main article content goes here.</aside> FGroups thematically related content under a heading - the Sports topic has its own semantic section

Definitions

<article>

Fill in the Blanks

Complete each line of code by filling in the missing parts.

1.
<___> <h2>Blog</h2> <p>Posts here.</p> </section>
2.
<___> <h2>My Post</h2> <p>Post content.</p> </article>
3.
<___> <h3>Related links</h3> <p>See also.</p> </aside>
4.
<section id="news"> <h2>Latest</h2> </___>
5.
<section> <___> <p>Post.</p> </article> </section>

Spot the Error

Shade in the letter of the line that contains an 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>

Answer Key

Content sectioning (section, article, aside)
Section A: Quick Questions
Q1
A — <section>
Q2
A — <article>
Q3
B — Supplementary content related to but not essential to the main content
Q4
A — True
Q5
B — False
Section B: Match the Pairs
Q1
<section> <h2>Sports</h2> <p>Latest sport news.</p> </section> → Groups thematically related content under a heading - the Sports topic has its own semantic section
Q2
<article> <h3>Match report</h3> <p>Team A won.</p> </article> → A self-contained piece of content - this match report could be syndicated or read independently of the surrounding page
Q3
<article> is for self-contained content that could stand alone, like a blog post or news story → <article> <h2>New product launch</h2> <p>Details here.</p> </article>
Q4
<aside> holds supplementary content related to but not essential to the surrounding content → <aside> <h3>Related articles</h3> <a href="more.html">Read more</a> </aside>
Q5
<SECTION> <h2>Topic</h2> </SECTION> → Tag names must be lowercase - <SECTION> and </SECTION> should be <section> and </section>
Q6
<aside>Main article content goes here.</aside> → <aside> is for supplementary content, not primary content - use <article> or <section> for main content
Section C: Definitions
Q1
<article> — A semantic HTML element for self-contained content that could stand alone, such as a blog post, news story, or forum entry.
Section D: Fill in the Blanks
Q1
<section> <h2>Blog</h2> <p>Posts here.</p> </section>
Q2
<article> <h2>My Post</h2> <p>Post content.</p> </article>
Q3
<aside> <h3>Related links</h3> <p>See also.</p> </aside>
Q4
<section id="news"> <h2>Latest</h2> </section>
Q5
<section> <article> <p>Post.</p> </article> </section>
Section E: Spot the Error
Q1
A — HTML tag names must be lowercase. <SECTION> should be written as <section>.
Q2
B — The article opening tag appears twice. The second one should be the content - or the closing tag is missing a forward slash: </article>.
Q3
C — HTML tag names must be lowercase. <ASIDE> and </ASIDE> should be written as <aside> and </aside>.
Q4
D — The class attribute value must be in double quotes. class news (without quotes) is invalid - write class="news".
Q5
E — The aside attribute value must be in double quotes: class="note". class=note without quotes is invalid HTML.