Semantic structure: Supporting asides
An aside contains related but secondary material. Essential task instructions belong in the main flow.
Current edit
Understand the pattern
An aside contains related but secondary material. Essential task instructions belong in the main flow.
An aside contains related but secondary material. Essential task instructions belong in the main flow.
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
<main><h1>Practice session</h1><p>Read the supplied log.</p></main>
<aside aria-labelledby="tip"><h2 id="tip">Background reading</h2><a href="/unix/">UNIX fundamentals</a></aside>An aside contains related but secondary material. Essential task instructions belong in the main flow.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Semantic structure: Page footerTry an incident drillAnonymous 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
- 01Semantic structure: Independent articlesAn article is a self-contained composition that could make sense when distributed independently.Practice
- 02Semantic structure: Page footerA footer contains information about its nearest section or the page, such as related links or authorship.Practice
- 03Semantic structure: Contact informationaddress marks contact information for its nearest article or body, not every postal address mentioned in text.Practice