What are heading tags?
HTML supplies named heading elements with levels that correspond to nested sections. The HTML standard defines these levels. A main page heading commonly uses h1; a section below it uses h2, and a subsection can use h3. Choose the level from the content structure.
Make the page outline understandable
A reader scanning a guide needs to distinguish its main sections from their smaller steps. Screen-reader users can also navigate through headings. W3C’s heading guidance explains why meaningful section labels and logical ranks help people navigate the page.
This is useful even on a page with no search traffic. A heading such as Before you assemble the desk explains the section’s purpose; More information leaves the reader guessing.
Write an outline before choosing its appearance
This illustrative guide has a page heading, separate preparation and assembly sections, and a narrower subsection within assembly. The excerpt shows an outline, not a complete article or a tested customer page.
<h1>Desk assembly guide</h1>
<h2>Before you begin</h2>
<h2>Assemble the frame</h2>
<h3>Attach the legs</h3>
<h2>Check the finished desk</h2>Returning from the subsection to another main section is appropriate. Avoid starting a deeper subsection by skipping a heading rank merely because its default font size looks better. W3C distinguishes these cases.
Heading level and visual style are different choices
The number in a heading tag identifies its semantic level. CSS controls how it looks. If a section heading needs smaller type, style the correct heading rather than replacing it with a lower-level tag.
| Markup choice | Structural meaning | Editor check |
|---|---|---|
| h1–h6 | A heading at the specified level | Does the rank match the section’s nesting? |
| Bold paragraph | Emphasized prose, not a heading | Should this actually introduce a section? |
| CSS font size | Visual appearance | Is the real heading still recognizable? |
Turn a vague heading into a useful signpost
Suppose a hypothetical assembly guide has a section labelled Important immediately before a parts list. Check the parts before assembly tells a reader what the section covers. It also makes a headings-only outline easier to understand.
The change must agree with the content underneath it. Do not relabel a brief parts list Complete troubleshooting guide unless the page actually provides that guide. A question-shaped heading is useful when the section answers that question directly; it does not promise a featured snippet.
A heading belongs in the page; a title names the document
The title element lives in the document head, while headings appear in its body. A page can use a concise document title and a more explanatory visible heading, provided both describe the same content. Neither should promise a comparison when the page only contains a signup form.
Google may use headings among the sources for a search title link. Its SEO Starter Guide also separates useful semantic order for screen readers from Google Search’s handling of heading order. Do not interpret a skipped rank as proof of a search penalty.
Inspect the rendered page outline
- Read the headings without the intervening paragraphs. Check whether they describe a coherent page.
- Separate whole sections from subsections before assigning ranks.
- Inspect the rendered HTML, including headings inserted by the layout.
- Use CSS to adjust appearance without changing the intended rank.
- Check that each heading introduces the content it names.
For a conventional article, one clear main heading is a useful editorial pattern. Google’s guide does not prescribe an ideal number of headings. Avoid adding sections merely to reach a count.
Do not use headings as decoration or filler
A bold sentence is not a semantic heading. An h3 selected only for its small font can misrepresent nesting. Repeating the same keyword in every section can also obscure what each section actually covers.
Before changing a shared layout, check whether it already renders a main heading. Adding another in the article body can produce an unintended outline. Resolve the page structure and visible promise rather than treating a count from an audit as a complete diagnosis.
Questions readers ask
Should every paragraph have a heading?
No. Add a heading when a new section or subsection begins. Short passages may need no further subdivision; excessive headings can interrupt the explanation.
Can a smaller-looking heading have a higher semantic level?
Yes. CSS can change the appearance of a heading without changing its level. Choose the level for the document structure and style it for the design.
Related concepts
Primary references and scope
Documentation checked on October 13, 2026. Worked examples are hypothetical.