Technical SEO
Heading Hierarchy for SEO and Accessibility: A Practical Guide
Heading hierarchy for SEO and accessibility is the practice of using one H1 and ordered H2 to H6 levels that describe the content beneath them, with no skipped levels. In my WordPress builds it means a single page title, descriptive section headings, and a document outline a screen reader can navigate and a crawler can parse before any JavaScript runs.
What heading hierarchy means for SEO and accessibility
Heading hierarchy for SEO and accessibility is the document outline formed by H1 through H6 elements in the order they appear in the rendered HTML. The H1 names the page's single topic; H2s divide it into sections; H3s subdivide those sections. Screen reader users pull up a heading list — NVDA's elements list or VoiceOver's rotor — and jump between levels to build a mental model of the page before reading a word of body text. Search crawlers and answer engines read the same structure to decide which passage answers which query. When the order is broken, both audiences lose the map. The rule is simple: nest by meaning, not by font size, and let CSS handle visual weight.
- One H1 that names the page topic, not the site name
- H2 elements for each main section of the answer
- H3 to H6 only when a section genuinely subdivides
- Heading order that matches the visual reading order
- No level chosen for its font size alone
One H1 per page, in practice
HTML5 sectioning technically permits more than one H1, but the practical convention on content sites remains a single H1 that states the page's purpose. In my WordPress themes the H1 comes from the template — the post title in single.php, the archived term name on a taxonomy page — never from the site logo. That last point catches teams out: many builder headers wrap the logo in an H1, so every page ships two competing top-level headings. On the home page I let the hero headline carry the H1 and keep the logo as a plain link. The check is not philosophical; open a rendered page and count H1 elements, then ask whether each one describes that URL.
- Exactly one H1 per URL in the server-rendered HTML
- H1 text aligned with the query the page targets
- Logo and site title rendered as a link, not a heading
- Card titles in archives set to H2 or H3 under the archive H1
- No H1 injected by a global header or footer template
Never skip a level: H1, then H2, then H3
Skipped levels are the most common failure I see: an H1 followed directly by an H4 because the designer wanted a smaller font. For a screen reader user jumping through headings, that gap reads as missing content — the listener assumes a whole section was overlooked. WCAG 1.3.1 (Info and Relationships) is the standard that covers this, because heading tags must reflect the actual structure, not just look right. Search engines publish no penalty for a skipped level, and I would not claim one; the real cost is that crawlers and answer engines get a weaker map of which text belongs to which claim. Fix the level in the HTML and change the size in CSS.
- H1 then H2 then H3 with no gaps in the sequence
- Visual size controlled by CSS classes, never by heading level
- Every H3 nested under an H2 that actually covers it
- Divider or label text marked up as a paragraph, not a heading
Write descriptive H2s that carry the answer
H2 text should work as a standalone answer to a question a visitor might ask. "Services" tells a screen reader listener nothing; "Custom WordPress theme development in Mymensingh" tells them exactly what the section covers and where the developer is based. I write H2s as short claims or questions, then open each section with a 45 to 70 word answer-first paragraph beneath it. That pattern is what answer engines lift into a response, so the heading and the first paragraph must agree. Avoid internal labels such as "Overview" or "More info" when a specific phrase fits, and resist repeating the target keyword in every H2 — one natural mention in a descriptive heading beats five stuffed ones.
- H2s phrased as the question the section answers
- Concrete nouns instead of labels like "Overview"
- One answer-first paragraph immediately under each H2
- No repeated keyword across every heading
How page builders break the outline
Page builders are the main reason a clean design ships a broken outline. Elementor's Heading widget defaults to H2 regardless of where the widget sits, and users often pick a level by how big the text looks rather than by its role in the document. Divi and WPBakery add their own wrappers, while global header templates can insert a logo H1 into every page. Gutenberg has the same trap: the Heading block lets you choose H3 because it looks tidier under an H2 that is actually a sibling. I audit the rendered HTML with view-source rather than the editor, because the editor shows the intended design and the browser shows the actual hierarchy. Then I map each heading widget to its position: H1 for the page title, H2 for each section, H3 only for true subsections.
- Heading widgets defaulting to H2 or H3 regardless of position
- Levels chosen for font size rather than document role
- Global header templates inserting an extra logo H1
- Nested builder widgets creating H4 under H2 with no H3
- Gutenberg Heading blocks set to a level that breaks the outline
How I repair a broken hierarchy in WordPress
When I inherit a broken hierarchy, I start from a server response, not the page builder. A curl of the URL or view-source gives me the HTML a crawler receives, and I list every h1 to h6 tag in order with its text. Next I compare that list with the visual reading order and decide the correct level for each heading. In WordPress I make the change in the theme template or block settings — header.php for the logo, single.php and page.php for titles, and the relevant Heading block or widget for sections — then restyle with CSS classes so appearance stays identical. I re-run axe DevTools or the Lighthouse accessibility audit, and I check the heading list in a screen reader. I'm Saif Al Jahan, a WordPress and PHP developer in Mymensingh, Bangladesh, and this is the repair process I use on sites published through webdev-saif.com.
- Export the server-rendered HTML and list h1 to h6 tags in order
- Compare heading order with the visual reading order
- Fix theme templates, block levels and builder widget tags
- Restyle with CSS after correcting the semantic level
- Confirm with axe, Lighthouse and a screen reader heading list
Verify the outline, then measure the result
Verification is a short checklist, not a score-chasing exercise. First, confirm one H1 and an unbroken level sequence on a handful of representative templates: home, a single post, an archive and a landing page. Second, check that each H2 is descriptive enough to stand alone when read from a screen reader heading list. Third, make sure FAQ answers and any TechArticle or FAQPage JSON-LD describe content that is actually visible, since structured data cannot rescue a confusing outline. I crawl the site with a tool that extracts H1 counts, then sample the pages in Search Console for impressions and queries. I update the page date only when the substance changes, and I prune content that never earns an impression.
Frequently asked questions
Can a page have more than one H1?
Technically HTML5 allows multiple H1 elements inside separate sectioning roots, but on a content page the practical convention is one H1 that names the topic of that URL. In my builds the logo is a plain link and the H1 is the post or landing-page title. Two H1s, usually one from the logo and one from the content, create an ambiguous outline for screen reader users and crawlers alike. Keep one.
Do skipped heading levels hurt SEO rankings?
There is no published ranking penalty for jumping from H1 to H4, and I would not claim one. The damage is practical: a screen reader user reading the heading list assumes content is missing, and crawlers get a weaker picture of how sections relate. Answer engines also struggle to attach the right passage to the right subheading. Fix the level in the HTML and use CSS for size; that solves both the accessibility and the parsing problem.
Why do my Elementor headings render as H2?
Because the Heading widget has a default HTML tag of H2 and the level is often chosen to match a visual style rather than the document outline. Open the widget settings and set the tag to H1 for the page title, H2 for sections and H3 for real subsections. Then inspect the front end with view-source, since the editor does not show the generated tag. Check global templates too — a header template can add another H1 on every page.
How do I audit heading hierarchy on a live page?
Fetch the page source or use browser DevTools and list every h1 to h6 element in DOM order with its text. Run axe DevTools or the Lighthouse accessibility audit for automated checks, then open the screen reader heading list — NVDA's elements list or VoiceOver's rotor — and navigate it as a user would. Review the home page, a single post, an archive and a landing page, because each template can fail differently.
Should I put keywords in every H2?
No. Write the H2 as a clear description of what the section answers, and include the keyword naturally where it fits. Search engines and answer engines read the whole page, and a heading that reads like a keyword list is harder for a person to scan. An answer-first paragraph under a descriptive H2 does more work than repeating the same phrase five times. One natural mention in the heading and a direct answer beneath it is a practical target.