Skip to content
Clairos Learn

Semantic structure · Lesson 4 of 10 · 10 minutes

Semantic structure: Named sections

A section groups a distinct topic. aria-labelledby can give the region its name from a visible heading.

Mastery 0/3Run itExplain itApply it
Web workshopInert preview · code inspection

Current edit

PreviewNo external resources

Understand the pattern

A section groups a distinct topic. aria-labelledby can give the region its name from a visible heading.

A section groups a distinct topic. aria-labelledby can give the region its name from a visible heading.

Misconceptions to reject

  • A visual appearance alone guarantees the intended HTML meaning.
  • Replacing semantic elements with generic divs automatically improves accessibility.

The preview is a sanitized subset, not a full browser compatibility test.

Worked example and expected result
<section aria-labelledby="schedule"><h2 id="schedule">Schedule</h2><p>Practice begins at ten.</p></section>

A section groups a distinct topic. aria-labelledby can give the region its name from a visible heading.

Try a variation

Adapt the final example to a different project name while retaining its structure and relationships. A different context still needs a real browser and accessibility check.

Explain it

Which statement correctly explains named sections?

Apply it elsewhere

You reuse named sections in a different project. What must still be verified?

Keep the momentum.

Complete the lab, then explain and apply the pattern.

Next: Semantic structure: Independent articlesTry an incident drill

Anonymous lesson and mastery progress lasts for this session. Sign in to keep synced lesson XP between sessions; mastery stays device-local. No speed bonus, lost lives, or hint penalties.

Keep learning

  1. 01Semantic structure: Main landmarkThe main landmark contains the page-specific content, excluding repeated site navigation.Practice
  2. 02Semantic structure: Independent articlesAn article is a self-contained composition that could make sense when distributed independently.Practice
  3. 03Semantic structure: Supporting asidesAn aside contains related but secondary material. Essential task instructions belong in the main flow.Practice