On-Page SEO

H1 tag: how to write it right — complete guide

Article cover: how to write the H1 tag correctly

What H1 is, why search engines need it, how it differs from title, and how to write a page heading that ranks.

What is H1 and why search engines need it

H1 is the HTML first-level heading tag. It marks the main heading of a page — what the page is about. Unlike the <title> tag, which only appears in the browser tab and search snippet, H1 is visible directly on the page — it is the first thing a user sees after the page loads.

For a search crawler, H1 is one of the strongest on-page signals: it communicates the topic of the document. If title answers "what is this" in the SERP, H1 answers the same question once the user is already on the page. The closer they align in meaning, the cleaner the signal for the search engine.

H1 by the numbers

#1

On-page signal

H1 is one of the three strongest on-page ranking factors alongside title and page content

~33%

Google pulls from H1

Share of cases where Google uses H1 text instead of title for the snippet headline (Zyppy, 2021)

1

H1 per page

One page must have exactly one H1. Multiple H1s dilute the relevance signal

20–70

Characters

Recommended H1 length: long enough to include the keyword, short enough to be readable at a glance

The syntax is straightforward: the <h1> tag goes inside <body>, contains the main heading text, and is typically the first prominent element on the page. Content management systems (WordPress, Webflow, Shopify) often auto-generate H1 from the page or post title — but that is not always the right result.

HTML
<body>
  <h1>Buy Winter Welders' Workwear Wholesale</h1>
  <p>Catalogue of fire-resistant suits and gloves from the manufacturer...</p>
</body>

One page — one H1, always

This rule is not just a recommendation — it is the foundation of correct content hierarchy. When a page has multiple H1 tags, the search engine cannot tell which one is primary. The result: a diluted signal, reduced relevance, and in the worst case, none of the headings registers as the main topic.

Myth: HTML5 formally allows multiple H1 tags inside different sectioning elements. True — but search crawlers still process the page as a flat document, not a tree of sections. In practice, multiple H1s = an SEO problem.

The heading structure on a page should resemble a book's table of contents: one H1 (the book title), several H2s (chapters), H3s inside each chapter (sub-sections). Breaking this hierarchy reduces machine-readability and complicates crawling.

One H1 per page

The main heading must be exactly one. It marks the topic of the entire document — not a section or block, but the whole page.

H2 for sections

Use H2 for major thematic blocks. Well-written H2s can rank for secondary queries and attract traffic through featured snippets.

H3–H6 for hierarchy

H3 and below help structure long content. They do not provide a direct SEO boost, but they improve readability and in-page navigation.

How to write a good H1

A good H1 is not an advertising slogan and not a list of keywords. It is a precise, concrete description of what the user will find on the page. A few principles that hold up in real projects.

Rule 1Include the primary keyword

Put the main search query in H1. It does not have to be the very first word, but the keyword must appear naturally. Not: "We are happy to offer welders' clothing for purchase". Yes: "Welders' workwear wholesale — buy from manufacturer".

Rule 2Specifics over generalities

H1 must describe this page, not the site as a whole. "Product catalogue" is weak. "Winter welders' workwear catalogue 2026" is strong. Specificity improves both relevance and CTR.

Rule 3No keyword stuffing

Do not repeat keywords multiple times in a single H1. "Buy workwear, workwear wholesale, workwear price" is stuffing. Google detects it and may demote the page. One natural keyword occurrence is enough.

Rule 4Optimal length: 20–70 characters

H1 is not pixel-limited like title, but an excessively long heading reduces readability and dilutes the topical focus. The ideal: one sentence that is completely readable at first glance.

Rule 5Write for humans, not bots

H1 is the first thing a user sees on the page. It must confirm they landed in the right place. Natural language — no artificial constructions — is the best strategy for both people and search engines.

Tip: frame H1 as the answer to a search query. If someone searches "how to choose welders' workwear", your H1 "How to choose welders' workwear: 5 criteria" is a perfect match for the query and the intent.

H1 vs title tag: what's the difference

H1 and title are often confused — and that leads to errors in both. Understanding the difference lets you use each element correctly.

CriterionH1Title
Where it appearsOn the page — first visible heading in contentIn the browser tab and Google snippet
Who sees itUser on the pageUser in search results, before clicking
SEO impactPage topic signal, content structurePrimary on-page ranking signal and CTR driver
Length20–70 chars, no hard pixel limit50–60 chars (~600 pixels in SERP)
Must be uniqueYes, site-wideYes, site-wide
Duplication riskFine if it matches title in meaningGoogle rewrites if it diverges from H1
Count per pageExactly 1Exactly 1 (inside <head>)

Best strategy: H1 and title align in meaning but can differ in wording. Title is shorter and optimised for CTR in the SERP. H1 is slightly longer and written for the user who has already landed on the page. A large gap between them is the main trigger for Google rewriting your title from H1.

Practical workflow: write H1 first — as a precise answer to the query for the user. Then trim it to 50–60 characters and add the brand — and you have a solid title. Both elements will be aligned, and each will do its job.

Good and bad H1 examples

A direct comparison teaches more than ten rules. Below are real-world situations from SEO audits, with an explanation of why each variant works or fails.

Page typeBad H1Good H1
Shop categoryCatalogueWinter welders' workwear — buy wholesale
Product cardWelding suitTK-1 fire-resistant welding suit GOST certified
Blog articleAbout SEOHow to write the H1 tag correctly: complete guide
Service pageOur servicesSEO audit: technical analysis delivered in 5 days
HomepageWelcome!Workwear manufacturer wholesale — SpecOpt
GlossaryGlossaryWhat is H1: definition and rules for filling it

Notice the pattern: bad H1s describe the page type ("catalogue", "services"), while good ones describe the specific content. A search crawler cannot infer content from the word "catalogue" — it expects specifics.

Never do this: H1 = company name ("Acme Ltd") or H1 = tagline ("Quality proven by time"). This wastes the keyword slot, leaves the user without context about the page content, and zeroes out the on-page signal for the search engine.

Common mistakes and how to avoid them

The same errors appear repeatedly in audits across hundreds of sites. Here is the shortlist — with root cause and fix.

  • Missing H1. A page without H1 loses one of its main on-page signals. Common in custom templates or after site migrations. Find with Screaming Frog → H1 → Missing.
  • Multiple H1s on the page. Usually caused by visual builders wrapping blocks in H1 "for styling". Find with Screaming Frog → H1 → Multiple. Fix: keep one H1, replace the rest with H2 or a div.
  • H1 = site name. A CMS template that injects the site name into H1 on every page. Creates site-wide duplicates and zero relevance. Fix: configure the template per page type.
  • H1 doesn't match the page topic. Content about welding safety standards, but H1 says "Buy workwear". The crawler sees a mismatch. Fix: H1 must accurately reflect what the document is about.
  • Keyword stuffing. "Workwear buy workwear wholesale price workwear" is not SEO — it's a filter trigger. One natural keyword mention is the maximum.
  • H1 inside an image. Text in an image is invisible to crawlers. Always put H1 in HTML markup, even if it visually resembles a designed graphic.
  • Hidden H1. display: none or visibility: hidden — Google treats this as manipulation and may ignore the tag or penalise the page.
Quick check: open any page, press Ctrl+U, and search for <h1>. Zero results — H1 is missing. Two or more — duplicate. For site-wide checks use Screaming Frog or Netpeak Spider.

FAQ

Answers to the questions that come up most often in audits and consultations about the H1 tag.

Yes, and they should align in meaning. But word-for-word identity is not required: title is usually shorter (50–60 chars) and includes the brand; H1 is slightly longer and written for the user on the page. The key is avoiding a large semantic gap between them.
Yes. H1 is one of the strongest on-page relevance signals. A missing H1 or one that doesn't match the page topic reduces the chance of ranking for target queries. It's not a ranking guarantee, but it is a necessary condition.
There is no hard limit, but practice shows 4–10 words (20–70 characters) is optimal. Too short ("Catalogue") provides too little information. Too long (over 100 characters) hurts readability and dilutes the SEO signal.
Ideally yes, but it's not critical. Words at the start carry slightly more weight. More important is that the keyword reads naturally — "How to choose workwear" beats "Workwear how to choose". Natural phrasing matters more than keyword position.
This is normal: Google pulls H1 for the snippet about 33% of the time, especially when H1 describes the page better. Solution: align title and H1 in meaning — even if Google swaps them, the snippet will still be accurate.
Homepage H1 describes the site or business as a whole. A good structure: "What you do / for whom — brand or key advantage". For example: "Workwear manufacturer wholesale — SpecOpt" or "Technical SEO for e-commerce and SaaS".
Mostly yes. Yandex also counts H1 as a relevance signal and can use it in the snippet. Additionally, Yandex responds more strongly to an exact keyword match in H1, so the "keyword in H1" principle is especially important for Russian-language SEO.