HTML & CSS · Junior · Question 40 of 75
Why have heading levels <h1>–<h6> if size can be set with CSS?
- 1Only for compatibility with old browsers that lack CSS support
- 2They're just six font-size presets that are handy for layout
- ✓Correct answer: They define the document hierarchy for screen readers and search engines
Explanation
A heading level is semantics, not size. Screen reader users often navigate a page by headings. So don't skip levels for looks: set the size with CSS and choose the level based on structure.