Anar Rustamli
SEO & AI Visibility

How to Write an H1 Tag for SEO: A Practical Guide

Learn how to write an H1 tag for SEO, how many H1 tags a page needs, the H1 vs title tag difference, and how to structure H2 and H3 headings clearly for both.

Anar RustamliAnar Rustamli8 min read1,505 words
H1 başlığı necə yazılır: SEO üçün praktik bələdçi - Anar Rustamli

How to Write an H1 Tag for SEO: A Practical Guide

If you are wondering how to write an H1 tag for SEO, the short answer is simple: use one clear heading per page that describes exactly what the page is about, in plain language a reader would actually use. A bakery's product page might use "Custom Birthday Cakes" as its H1, not a generic greeting like "Welcome to Our Shop." This guide covers how to write an h1 tag for seo step by step, including how many H1 tags a page should have.

how to write an h1 tag for seo - practical example

What Is an H1 Tag and Why Does It Matter?

An H1 tag is the top-level heading in a page's HTML code, written as <h1>. It is usually the largest heading a visitor sees right after the page loads. Getting it right matters because both readers and search engines use it as the first signal of what the page covers.

Yoast's guide to headings explains that search engines and AI systems use headings to interpret the topic and structure of a page's content (Yoast). Google's own SEO guidance describes the broader goal in the same spirit: helping search engines understand your content so they can help users find it (Google Search Central).

For a reader, the payoff is immediate. Someone landing on a plumber's service page should be able to glance at the H1 and know within a second whether this is the right business for their problem.

How to Write an H1 Tag for SEO: Step by Step

Here is the practical process for writing an H1 that works for both readers and search engines.

  1. Name the page's main topic in one sentence. A plumbing page might become "Emergency Pipe Repair in [City]."
  2. Work the keyword in naturally. Putting a keyword in an H1 heading helps, but only if the sentence still reads like something a person wrote.
  3. Keep it short and specific. Say what the page delivers instead of trying to summarize everything on it.
  4. Avoid unverifiable claims. Skip phrases like "best in town" unless you can actually back them up; describe the concrete benefit instead.
  5. Make every H1 unique. Repeating the same H1 across a site confuses both readers and search engines about which page answers which question.

Weak vs. Strong H1 Examples

The table below compares weak and strong H1 tags for the same type of business. The difference is not fancier wording : it is specificity.

BusinessWeak H1Strong H1
BakeryWelcomeCustom Birthday Cakes for Local Delivery
Freelance plumberHome PageEmergency Pipe Repair Service
Online bookstoreAbout UsRare and Secondhand Books Shipped Worldwide

A strong H1 names the outcome a visitor is searching for; a weak one says nothing at all.

How Many H1 Tags Should a Page Have?

The short answer: usually one. MDN's HTML documentation states that a page should generally have a single <h1> element that describes the content of the page (MDN).

Yoast gives the same guidance: in most cases you should use one H1 per page, because multiple H1s create confusion about the page's primary focus (Yoast). The HTML standard technically allows more than one H1, but that is not considered best practice.

The practical rule: write one H1 at the top of an article, product page, or service page, then use H2 and H3 for everything below it.

What Is the Difference Between an H1 Tag and a Title Tag?

The H1 vs title tag question comes up often because the two can look similar. The H1 is the visible heading inside the page content. The title tag, written as <title>, shows up in the browser tab and as the clickable line in search results : it is never printed inside the visible page itself.

FeatureH1Title tag
Where it appearsInside the page, as a large headingBrowser tab and search result listing
Visible to readers on the pageYes, once they land on itOnly in the tab and search results
How many per pageUsually oneOne
Main jobExplains the page's structureEncourages a click from search results

They can cover similar ground, but copying one into the other word for word is not required. When both are written well, it becomes easier for search engines to understand what the page covers (Google Search Central). For the details on writing the other half of this pair, see how to write a title tag for SEO.

How to Use H2 and H3 Tags for SEO

Heading structure for SEO does not stop at the H1. H2 tags split the main topic into sections, and H3 tags break those sections into smaller parts.

MDN is direct about this: it is important not to skip heading levels, because doing so can confuse people using screen readers (MDN). In practice, that means never jumping from H1 straight to H3 : always add an H2 first.

  • H1: "Emergency Pipe Repair Service"
  • H2: "What We Fix"
  • H3: "Burst Pipes"
  • H3: "Water Heater Leaks"
  • H2: "Pricing"

This outline shows that heading structure is not decoration : it is a map. Screen reader users jump from heading to heading to scan a page, so a skipped level feels like a missing step to them.

How to Put a Keyword in an H1 Without Overdoing It

Putting a keyword in an H1 heading is useful, but forcing it in unnaturally backfires. Yoast is clear on this point: an H1 should be written naturally and should not be stuffed with keywords : it should read like a real headline written for people (Yoast).

The practical order is: write a clear sentence for the reader first, then check whether the keyword fits naturally. If it does not, keep the meaning and skip the forced match.

Common H1 Mistakes to Avoid

These are the most common H1 mistakes worth checking for:

  • Empty headings. "Home" or "Welcome" tell a visitor nothing about the page.
  • Multiple H1 tags. Some page builders add a separate H1 to every section, which goes against the one-H1 guideline.
  • Skipped levels. Jumping from H1 to H3 without an H2 in between.
  • Keyword stuffing. Repeating the same phrase four or five times until the heading is unreadable.
  • Using H1 purely for visual size. MDN warns against using heading elements to resize text : that is a job for CSS font-size, not heading level (MDN).

Frequently Asked Questions

How many H1 tags should a page have?

Usually one. MDN notes that a page should generally be limited to a single H1 element that describes the page's content. Multiple H1 tags are technically possible but not the recommended approach.

Does the H1 tag directly affect SEO rankings?

Not directly as a ranking factor on its own, but it helps search engines understand what the page is about. A clear H1 can indirectly support rankings because the content gets interpreted more accurately and readers stay longer.

What is the difference between an H1 tag and a title tag?

The H1 is the heading visible inside the page. The title tag is a separate element shown in the browser tab and in search results. They can overlap in meaning, but they are not the same HTML element and they do different jobs.

Can you skip heading levels like H2 to H4?

It is not recommended. Skipping heading levels, especially for screen reader users, creates confusion because people navigate by jumping from heading to heading in order.

Do I have to use the exact keyword phrase in the H1?

No. Working the keyword into natural language is enough. Forcing an exact repeated phrase usually hurts readability and can make the heading feel like it was written for a machine instead of a person.

Sources

Once the H1 is solid, the rest of a page's on-page setup is worth checking too: how to write a meta description, how to structure URLs for SEO, how to do an SEO audit, how to do mobile SEO, and what is search intent in SEO. Reading these together closes most of the common on-page gaps in one pass.

Share
Anar Rustamli
Author
Anar Rustamli

I'm Anar Rustamli - a strategist, entrepreneur, and AI adoption leader working at the edge of growth, technology, and human thinking. Since 2016, my work has focused on helping businesses evolve in a rapidly changing digital landscape. I design growth systems, AI-powered workflows, and strategic frameworks that align performance with purpose. I believe real growth happens when strategy, data, and human insight work together - and my mission is to help businesses adopt AI in a way that strengthens both their results and their identity.

Start Conversation
Contact

Let's build the next system.

Start Conversation