How heading tags work
HTML gives you six heading levels, H1 through H6. They are not sizes; they are levels in an outline. An H2 opens a main section, an H3 opens a subsection inside it, and so on downwards. Browsers happen to render the higher levels larger by default, which is why they get mistaken for formatting, but the meaning is structural: the level states what belongs under what.
Everything that reads a page uses that outline. Someone using a screen reader can jump from heading to heading instead of listening to the whole page. A search engine uses the headings to work out what each part of the page covers and which passage answers a particular question. Site features such as an automatic table of contents or a jump-link menu are built straight from them.
Why heading tags matter
Most people do not read a web page. They scan it and stop where the answer looks likely to be, and headings are what they scan. A page with honest, specific headings can be understood almost at a glance by someone deciding whether to stay, and that decision governs everything that follows.
Headings also matter to anything that lifts content out of pages. A question-shaped heading followed by a direct answer gives a clear boundary around that answer, which is the shape that suits featured snippets and AI-generated summaries. An answer buried in a wall of undifferentiated paragraphs is harder for any reader, human or machine, to extract cleanly.
Common mistakes with heading tags
The most frequent is choosing a level for its appearance — reaching for H4 because H2 looked too big on screen. That silently rearranges the outline. Choose the level by meaning and change the size in CSS.
Skipping levels does the same damage more quietly: an H2 followed directly by an H4 leaves a gap that assistive technology reports as a missing section. Two others are worth naming. Repeating the same phrase across every heading reads badly and helps nothing. And wrapping design furniture — a sidebar label, a footer title — in heading tags fills the outline with items that are not content. The reverse happens just as often, with a genuine heading styled as a bold paragraph, invisible to everything that reads structure.
Getting it right
Write the outline before the prose. If you can list the H2s and the argument of the page is clear from that list alone, the structure works. If the list reads as an unrelated set of topics, the page is trying to do more than one job and probably wants splitting.
Then check what actually shipped. View the outline in your editor or in a crawler, read the headings on their own, and ask whether someone who read nothing else would know what the page offers. Keep a single H1 naming the subject, keep the levels in order, and let the body copy deliver whatever each heading promised. It is one of the cheapest parts of on-page SEO to get right, and one of the most often skipped.
