Semantic structure: Nested heading order
Heading order follows the relationship between topics. A subsection of h2 normally starts at h3.
Current edit
Understand the pattern
Heading order follows the relationship between topics. A subsection of h2 normally starts at h3.
Heading order follows the relationship between topics. A subsection of h2 normally starts at h3.
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
<h1>Server handbook</h1>
<section><h2>Logging</h2><section><h3>Retention</h3><p>Keep the required evidence window.</p></section></section>Heading order follows the relationship between topics. A subsection of h2 normally starts at h3.
Explain it
Apply it elsewhere
Keep the momentum.
Complete the lab, then explain and apply the pattern.
Next: Semantic structure: Complete page outlineTry 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: Contact informationaddress marks contact information for its nearest article or body, not every postal address mentioned in text.Practice
- 02Semantic structure: Complete page outlineA clear page outline separates site navigation, the primary task, and supporting information.Practice