Skip to content
HTML·Intermediate·Conceptual·1 min read

How should headings be structured?

Short interview answer

Use headings to communicate document and section hierarchy, not to obtain a font size. Keep the hierarchy logical and give major regions useful names. A page can contain multiple h1 elements in the HTML specification, but one clear page heading is usually easiest for users.

Key takeaway

Explain the underlying mental model clearly, then support it with a concrete example and its trade-offs.

← Back to Semantic HTML

Related questions