{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-h1-bea5064b596a","title":"Ensure Proper H1 Tag Usage for SEO","summary":"This skill ensures each page has exactly one H1 tag that accurately describes the page's primary topic and includes relevant keywords for SEO optimization. The H1 must be visible in the rendered DOM and not hidden via CSS.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-h1-bea5064b596a","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-h1-bea5064b596a","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-h1-bea5064b596a.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-h1-bea5064b596a\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Before implementing, ensure the H1 is included in the page component (not in a shared layout for Next.js\/React) and that it contains the primary target keyword naturally. The H1 should not be empty, contain only the brand name, or be hidden via CSS `display:none` or `visibility:hidden`.","instructions":"---\nname: h1\ndescription: \"Use when auditing a page's heading structure, generating H1 text for landing pages or blog posts, or reviewing a CMS template that may produce empty or missing H1 elements.\"\nmetadata:\n  category: seo\n  priority: medium\n  difficulty: intermediate\n  estimatedTime: \"10\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/seo\/h1\n---\n\n# Use a single descriptive H1\n\nThe H1 is the most prominent heading on a page and a strong on-page ranking signal. Google uses it to understand the page's primary topic. Missing, duplicate, or keyword-free H1 tags reduce topical clarity, hurting rankings for the page's target terms.\n\n## Quick Reference\n\n- Each page should have exactly one `<h1>` tag that describes the page's primary topic with relevant keywords\n- The H1 does not need to be identical to the `<title>` tag, but they should be topically consistent\n- Empty `<h1>` tags, multiple `<h1>` tags on one page, or H1s containing only the brand name are all issues to fix\n\n## Check\n\nParse the rendered DOM of each page. Count all `<h1>` elements. Flag: (1) Pages with zero `<h1>` tags. (2) Pages with more than one `<h1>` tag. (3) `<h1>` elements whose text content is empty or contains only whitespace. (4) `<h1>` elements that contain only the brand name with no page-specific topic. (5) `<h1>` text that does not reflect the page's primary content topic.\n\n## Fix\n\n1. Ensure every page template outputs exactly one `<h1>`.\n2. The H1 text should describe the page's specific topic, not just the site name.\n3. Include the primary target keyword naturally in the H1 \u2014 do not force it awkwardly.\n4. If the page has multiple sections with separate H1 candidates, choose one main topic and demote others to H2.\n5. Verify the H1 is visible in the rendered DOM (not hidden via CSS `display:none` or `visibility:hidden`).\n6. In Next.js\/React: ensure the H1 is in the page component, not in the shared layout.\nBefore: `<h1>Acme Corp<\/h1>` (brand only)\nAfter: `<h1>Project Management Software for Enterprise Teams<\/h1>`\n\n\n## Explain\n\nGoogle's John Mueller has confirmed that H1 tags help Google understand page structure. While H1 is not the strongest ranking factor in isolation, it contributes to on-page topical relevance signals. Multiple H1 tags on one page dilute the primary topic signal; a missing H1 leaves a structural gap that reduces confidence in what the page is about.\n\n## Code Review\n\nQuery the DOM for all `<h1>` elements. Assert exactly one exists per page. Check that `innerText.trim()` is non-empty. Compare H1 text to the page `<title>` \u2014 they should share core topic keywords. Flag if H1 is inside a `<header>` element shared across all pages (often the site logo alt text) rather than specific to the page content.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/seo\/h1\n","use_cases":["Auditing a page's heading structure to identify missing or duplicate H1 tags.","Generating H1 text for landing pages or blog posts that reflect the primary topic.","Reviewing a CMS template to ensure it produces valid, non-empty H1 elements."],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/h1\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:20:32.000000Z","updated_at":"2026-11-23T04:55:09.000000Z","seo_title":"Ensure Proper H1 Tag Usage for SEO","seo_description":"Optimize your website's SEO by ensuring each page has a single, descriptive H1 tag that reflects the primary topic and includes relevant keywords.","seo_keywords":["SEO H1 tag best practices","Fix missing H1 tags","Optimize H1 for SEO","Ensure one H1 per page","H1 tag structure audit"]}}