Heading tags
Heading tags are h1 to h6 in HTML. They outline your page for readers, search engines and screen readers. This entry shows how to set them right on a small site and what to avoid.
By Théophile Louvart, founder of Porteur · Updated 14 September 2026 · Markdown
Why headings matter on a small site
You have few pages and little time. Clear headings help users scan, cut bounce, and make support pages easier to use. Good headings also make it clearer what each page is for, so you avoid intent mismatch and keyword cannibalisation across similar pages.
On a help page like "/guides/getting-started", an h1 that states the task and h2s that match the steps reduce support tickets. On "/pricing", h2s that match plans cut confusion and make internal links clearer, for example a link with anchor text "See Pro features" that jumps to the h3 Pro section.
How to set and check your headings
Pick the h1
Make it the page title users expect. Example on "/guides/getting-started": h1 "Getting started with YourProduct".
Map h2 sections
List the main sections. Turn them into h2s. Example: "Install", "Connect data", "First dashboard".
Nest h3 only when needed
Use h3 inside a section when there are subtopics. Do not jump from h2 to h4.
Phrase questions where helpful
Use h2 like "How does billing work?" on "/pricing". This can earn a featured snippet or an AI quote when your answer sits right under it.
Check the outline in the browser
Right click, Inspect, search for <h1>, <h2>, <h3>. Or use your CMS preview to view source and scan the heading order.
Fix styling-only misuse
Do not use headings to make text big. Use CSS classes on <p> or <div>. Reserve h1 to h6 for the document outline.
A fixed page reads cleanly in the outline: one h1 that matches the title tag, logical h2s for sections, optional h3s, and no skipped levels.
Write headings that answer searches
Match how people ask. On a FAQ page, use h2s like "What is your refund policy?" and "How do I cancel?" Keep the answer in the next paragraph. Short, direct, no fluff.
For a blog post targeting "heading tag html", start with h1 "Heading tag HTML: H1 to H6 explained". Follow with h2s "What are H1 to H6", "How Google uses headings", and "Examples". This signals relevance without stuffing keywords.
Common traps and quick fixes
- Multiple h1s used for styling. Fix by keeping one h1 and moving others to h2 with CSS for size.
- Empty headings generated by the CMS. Remove or convert them to <p>.
- Skipping levels, for example h1 to h3. Insert the missing level or lower the deeper one.
- Using <header> as a heading. <header> is a container, still put an h1 or h2 inside.
- Keywords stuffed into every heading. Write for scanning first, add key terms only where they help understanding.
- Accordion components that hide h2s by default. Ensure collapsed headings still use real h2, not buttons without roles.
Test with a screen reader shortcut list of headings. If the list is confusing, fix the HTML, not just the CSS.
Questions
Wrap the text in a heading element, for example <h2>Features</h2>. Use h1 for the page title, h2 for sections, and h3 inside sections when needed.
Use <br> for a line break. It is a void element and does not have a closing tag. Do not use line breaks to fake headings.
Add one h1 near the top of the main content, for example <h1>Pricing</h1>. Keep it visible and match it to the page’s title and purpose.
They are heading levels in HTML. H1 is the page title. H2 marks top-level sections under that title. Use h3 for sub-sections inside an h2.
Browsers and Google can handle several h1s, but one h1 is the convention and helps users and screen readers. Use h2 for other top-level sections.
<header> is a structural container like a banner or section header. A heading is an h1 to h6 element. You often put a heading inside a header.
Check my site, free
Want a quick audit of your headings and questions across key pages? Paste a URL and get a free check in about thirty seconds with three full findings.
- Free check, no card
- Read-only, your own accounts
- Readable by your agent
Read next
- GlossaryTitle tag
- GlossaryMeta description
- GuideOn-page SEO checklist: the twelve things on the page
- GuideInternal linking for a small site: which pages link to which
- GlossaryFeatured snippet
- GuidePeople also ask: turning Google’s questions into sections
- Glossaryhreflang
- GuideCanonical tags in practice: the six situations you will meet