Semantic structure: Main landmark
The main landmark contains the page-specific content, excluding repeated site navigation.
Current edit
Understand the pattern
The main landmark contains the page-specific content, excluding repeated site navigation.
The main landmark contains the page-specific content, excluding repeated site navigation.
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
<header><p>Study group</p></header>
<main><h1>This week</h1><p>Practice reading service logs.</p></main>The main landmark contains the page-specific content, excluding repeated site navigation.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Semantic structure: Named sectionsTry 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: Primary navigationA nav landmark groups major navigation links; a label distinguishes it from another navigation region.Practice
- 02Semantic structure: Named sectionsA section groups a distinct topic. aria-labelledby can give the region its name from a visible heading.Practice
- 03Semantic structure: Independent articlesAn article is a self-contained composition that could make sense when distributed independently.Practice