H1 vs H2: HTML heading tags and SEO explained

    H1 and H2 are HTML heading tags that identify different levels in a page outline: H1 carries the main topic, while H2 opens a section of that topic. H3 divides an H2 section further. Google recommends headings to make content easier to navigate, but says their order does not matter for Search. The useful standard is a clear outline, not a ranking formula.

    Franck Gordi, SEO and GEO consultant

    Franck Gordi

    · 8 min read

    Contact me
    HTML heading tags

    H1: topic

    H2: section

    H3: subsection

    Key takeaways

    • HTML headings provide six levels: H1 identifies the main topic, H2 opens a section, and H3 divides that section into subsections.
    • Google says heading order does not matter for Search; a coherent hierarchy still helps people who use screen readers.
    • A distinct, prominent main H1 reduces ambiguity about the page title, without guaranteeing better rankings or visibility.
    • The title element, visible H1 and Google title link serve different purposes and should describe the same page topic.
    • A heading describes a section; font size is a separate styling decision, not a reason to change heading levels.

    What are H1, H2 and H3 tags for?

    HTML heading tags identify headings and subheadings in a document. There are six levels, H1 through H6. H1 carries the page's main topic. H2 opens a section of that topic. H3 divides that section when the content needs further subdivision. H4 through H6 extend the same structure.

    This organization is not a keyword list. It is an outline readers should understand without reading every paragraph. In its SEO Starter Guide, Google recommends breaking long content into paragraphs and sections, with headings that help users navigate the page.

    The useful check for a heading is: "what content starts here?" If its wording does not answer that question, the problem is primarily editorial. An H2 such as "Our expertise" is less precise than a heading that names the problem, comparison criteria or decision addressed by the section.

    H1 vs H2 vs title tag: what is the difference?

    H1 names the page's main topic, H2 names a section, and the title element supplies the document title used in places such as the browser tab. The title link shown in Google is a fourth object: Google generates it automatically from several sources.

    Four functions that should not be confused
    ElementFunction
    H1Identifies the main topic in the visible content.
    H2Opens a section of the main topic.
    titleSupplies the document title, including the text used in the browser tab.
    Google title linkSearch result title generated by Google from several sources.

    The H1 and title element do not need to match word for word. They should describe the same page. A title about pricing and an H1 about a definition create different expectations. For rules specific to the document title, see the article on the title tag.

    Google lists the main visual title, heading elements and large or prominent text among the sources for title links. Several headings with equal visual prominence can create ambiguity. Its guidance recommends making the main title distinctive, for example by placing it in the first visible H1.

    Do you need one H1 and a strict H2, H3 order?

    One H1 and logical nesting are a clarity standard used here, not a Google penalty rule. Google's guide explicitly says semantic heading order is excellent for screen readers, but heading order does not matter from a Google Search perspective. Google also says there is no ideal number of headings.

    A practical standard

    Keep one H1 for the main topic, H2 headings for the major sections, and H3 headings for subdivisions of each H2. A new H2 after an H3 is normal: it returns to the major-section level. An H3 directly below an H1, however, leaves a subdivision without a parent section.

    This convention reduces reading friction and makes pages easier to maintain. It does not support a numerical SEO improvement claim, or the claim that an H2 has a measurable ranking value greater than an H3.

    How do you build a useful heading outline?

    Build the outline from the main question and its subquestions, then choose heading levels. The subject determines the structure; the heading count should not be set before the content.

    One main question, followed by its subquestions

    H1: main topic
    Wording that states what the page helps readers understand or decide.
    H2: section
    A distinct subquestion that contributes to answering the main topic.
    H3: subdivision
    A case or criterion that belongs to the preceding H2 section.
    Paragraph: answer
    A direct answer below the heading, followed by useful conditions and explanations.
    An editorial structure convention, not a Google ranking requirement.
    • Write the question the page must answer first, without adding several commercial topics at once.
    • List the questions needed to understand, compare or act: definition, differences, conditions, errors and verification.
    • Group related questions under one H2. Reserve H3 headings for subdivisions that genuinely need their own treatment.
    • Read the headings alone. The outline should make sense, and each section should contribute a different answer.

    If two pages give the same answer to the same questions, changing their H1 headings does not differentiate them. That is a potential SEO cannibalization issue, not a markup defect.

    Which heading errors should you fix first?

    Start with an ambiguous main title and poorly named sections. Heading-level defects come next. This is a proposed editorial review order, not an ordering of Google ranking factors.

    Separate meaning, level and appearance

    Ambiguous main title
    Several texts dominate visually. Make the main page topic clearly identifiable.
    Heading without a section
    An H2 only makes a sentence or button larger. Keep the appropriate element and adjust its styling.
    Repetitive wording
    Every section repeats the same keyword without naming an answer. State the specific subquestion.
    Inconsistent hierarchy
    A subdivision has no parent section. Reorganize levels to reflect the actual outline.
    A proposed page-review grid, without any claimed client result or ranking effect.

    Do not choose H2 because the text looks smaller

    The HTML level describes a relationship between sections. Appearance is controlled separately. A small heading can still be an H1; large text is not necessarily a heading. Using a heading tag for a decorative label makes the outline harder to follow.

    Do not fill headings with keywords

    A main term can appear naturally in the H1. H2 headings should primarily distinguish the questions. Repeating "H1 vs H2 SEO" in every section adds no information to the outline. Google's guide prioritizes content that is easy to follow, useful and written for readers.

    How do you check headings on a published page?

    Check headings in the page as actually rendered, then compare the list with the visible content. Markup configured in an editor and the result delivered to the browser can differ, particularly on a JavaScript page.

    • Heading list: inspect h1 through h6 elements with browser tools or a crawler, in their order of appearance.
    • Main topic: check that a visible title accurately describes the page and stands apart from other prominent text.
    • Outline: read H2 and H3 headings without paragraphs. Each heading should describe the section that follows.
    • Actual content: look for empty headings, headings duplicated by a template, hidden headings or headings used only for styling.
    • Consistency: compare the title element and H1. Both should express the same topic, even if the wording differs.

    On a JavaScript page, also check what Google can render: our article on JavaScript SEO distinguishes initial code from rendered content. For a review across templates, an SEO audit helps put warnings in context.

    Are heading tags enough to earn AI citations?

    No. A clear outline organizes content; it does not guarantee retrieval or citation by a generative engine. The two Google documents cited here demonstrate no citation gain tied to heading count or level.

    The useful standard remains editorial: a precise heading, a direct answer immediately below it, explicit conditions, and an identifiable source when a rule is attributed. Structure helps readers locate an answer; it does not replace the information that makes the answer useful.

    Frequently asked questions about H1 and H2 tags

    What are HTML heading tags?

    HTML heading tags provide six heading levels, H1 through H6. They identify headings and subheadings to organize reading. Google recommends headings to help users navigate long content.

    Source: Google Search Central documentation

    What is the difference between H1 and H2?

    H1 identifies the page's main topic. H2 opens a section of that topic. The level represents a position in the outline, not a font size. This structure applies Google's recommendation to organize content for readers.

    Source: Google Search Central documentation

    Does having multiple H1 tags trigger a Google penalty?

    The cited documents do not establish a penalty based solely on the number of H1 tags. Google says there is no ideal heading count. One main H1 is a clarity convention used here, and Google recommends making the main title visually distinct.

    Source: Google Search Central documentation

    Does skipping from H2 to H4 hurt rankings?

    Google says semantic heading order helps screen readers, but heading order does not matter for Google Search. Logical nesting remains recommended for reading; a skipped level does not prove a ranking loss.

    Source: Google Search Central documentation

    Does Google automatically use the H1 as the search result title?

    No. Google generates title links from several sources, including the title element, main visual title, HTML headings and other prominent text. The H1 can contribute to that choice without being automatically reused.

    Source: Google Search Central documentation

    How many H2 tags should a page have?

    Google says there is no ideal heading count. The number of H2 headings depends on the sections needed to answer the topic. Each heading should open a useful section rather than fill an SEO quota.

    Source: Google Search Central documentation

    Sources and scope

    Documentation accessed October 24, 2026. Rules attributed to Google come from the pages below. The outline and review grid are a proposed editorial standard, not a method validated by client measurement. No ranking or citation gain is claimed.

    Portrait of Franck Gordi, independent SEO and GEO consultant

    Franck Gordi

    Independent SEO and GEO consultant for B2B SaaS. He helps software companies become visible on Google and cited by AI engines.

    LinkedIn →