Skip to the content
Start free

Heading tags

Heading tags are the HTML elements h1 to h6 that mark the titles and subtitles of a web page, from the main heading (h1) down to the smallest sub-point (h6). They give a page an outline. People use them to scan, screen readers use them to jump around, and search engines and AI tools use them to see what each part of the page is about.

What are heading tags? #

MDN’s reference on heading elements says h1 to h6 represent 6 levels of section headings, with h1 the highest and h6 the lowest. In code a heading looks like this:

<h1>How to descale a kettle</h1>
<h2>What you need</h2>
<h2>Step by step</h2>
<h3>Using vinegar</h3>
<h3>Using citric acid</h3>
<h2>Questions</h2>

The h1 names the page. Each h2 opens a main section. Each h3 sits under the h2 above it. Most pages never need h4 to h6. The H1 tag page covers the top level in detail.

Headings are not the same as the title tag. The title sits in the page head and shows in the browser tab and often in search results. The h1 is shown on the page itself. They can match, but they do different jobs.

Headings tell a search engine how the page is split up and what each part covers. Google’s title link guide lists heading elements such as h1 among the sources it may use to write the blue link in results. It suggests making the main title the most prominent text, for example in the first visible h1, and notes that if several large headings look the same, Google may use the first one.

Google’s SEO starter guide is relaxed about the details. It says semantic order is great for screen readers, but from Google Search’s point of view it does not matter if headings are out of order. It adds that there is no ideal number of headings for a page. So headings are about clarity, not a score. A clear outline also helps featured snippets and People also ask boxes, where a question heading followed by a short answer is easy to lift.

Why do they matter for AI answers? #

AI tools often split a page into chunks before they use it, and headings are natural places to cut. A heading that states the question, followed by a direct answer, makes a clean chunk that a retrieval system can find and quote. A heading like “More info” tells it nothing. This is a core part of answer engine optimisation: write headings people would type as a prompt. Our Heading Answer Gap Finder and RAG Chunk Previewer show how a page splits.

Why do they matter for accessibility? #

MDN says a common way for screen reader users to read a page is to jump from heading to heading, and that most screen readers can list every heading on the page. Skipped levels leave the listener wondering what is missing. The W3C’s headings tutorial says browsers, plug-ins and assistive technologies can use headings for in-page navigation, and that skipping heading ranks can be confusing and should be avoided where possible. WCAG success criterion 2.4.6, explained in Understanding Headings and Labels, is a level AA rule: headings and labels must describe their topic or purpose. See web accessibility.

How many h1 tags should a page have? #

HTML allows more than one, but MDN says that is not considered best practice and that a page should generally have a single h1 describing its content. Google says it does not mind. For readers and screen readers, one h1 is the clearest choice. Some themes put the site name or logo in an h1 on every page; if so, the real page title ends up second. Our multiple H1 fix plugin page covers that case.

Common mistakes #

  • Headings for size. MDN says not to use heading elements to resize text; use CSS font-size. A bold sentence styled as h3 confuses the outline.
  • Skipping levels. Going from h2 straight to h4 breaks the tree.
  • No h1, or a logo as h1. The main title is then unclear.
  • Vague words. “Overview” and “Details” describe nothing. Name the topic.
  • Stuffing. Cramming the same phrase into every heading reads badly and can look like keyword stuffing.
  • Headings in images. Text in a picture is not a heading at all.
  • Sidebar ranks that shift. The W3C advises keeping heading ranks in fixed areas, such as sidebars, the same on every page.

A worked example #

A product page for a coffee grinder, before and after:

Before After Why
h1: Shop Name (logo) h1: Hand coffee grinder, steel burr, 30 g The h1 names the product
h4: Description h2: What grind sizes does it make? No skipped level; a real question
h2: Free delivery over £30! (banner) Plain paragraph A promo line is not a section
h3: Info h2: How do I clean it? Describes its content
none h2: Delivery and returns Buyers and AI tools look for this

How to check it #

  1. Run the page through our Heading Checker to see the outline and any skipped levels.
  2. Today, our Meta Tag Checker shows the title tag beside the page, and the AI Readiness Checker shows how readable the page is for AI tools.
  3. Read only the headings. Do they tell the story of the page on their own?
  4. Try a screen reader’s headings list, or a browser outline add-on.
  5. Check headings are in the HTML, not added late by scripts; see JavaScript SEO and our JavaScript SEO checker.
  6. In URSY Pro, Answer-first checker flags headings not followed by a direct answer, and Site audit lists pages with missing or doubled h1 tags.

Questions #

Do heading tags help ranking? #

They help Google understand the page and choose a title link. Google says their order does not matter to Search, so treat them as clarity, not a trick.

Should every heading contain my keyword? #

No. Use the words a reader would use. Natural variety is better than repetition; see on-page SEO.

Can I style an h2 to look small? #

Yes. Choose the level for structure, and set the look with CSS.

Are question headings better? #

Often, for guides and help pages, because they match how people search and ask AI tools. Product names and section labels are fine where a question would feel forced.

Sources #

Updated 24 November 2026 by URSY.com.

Cite this page: Heading tags. URSY. Updated 26 November 2026. https://ursy.com/wiki/heading-tags/ · Section links

Tools for this

  • LiveCitation Anchor Checkerdo your headings have stable links AI can cite?Run the check →
  • LiveHeading Checker (H1-H6 outline)Run the check →
  • LiveHreflang Checker + Generatorlanguage versions wired both ways, or the tags written for youRun the check →
  • ProCitation anchors managerStable heading links site-wide; retired ones kept workingIn URSY Pro →

All 871 wiki entries, A to Z →