HTML & CSS · Junior · Question 40 of 75

Why have heading levels <h1>–<h6> if size can be set with CSS?

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.

Further reading

Problem with a question

HTML & CSS · Junior · question 40

Test yourself

Take the HTML & CSS · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz