{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-empty-heading-3dd3796ddb7a","title":"Ensure Headings Contain Text","summary":"Add visible, descriptive text to all heading elements (h1-h6) to maintain a meaningful document structure for accessibility and navigation.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-empty-heading-3dd3796ddb7a","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-empty-heading-3dd3796ddb7a","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-empty-heading-3dd3796ddb7a.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-empty-heading-3dd3796ddb7a\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Ensure the heading is not empty and contains meaningful content. If the heading is decorative, consider removing it or using a non-heading element with appropriate styling.","instructions":"---\nname: empty-heading\ndescription: \"Use when reviewing rendered HTML, interactive components, or design-system patterns related to Ensure headings contain text. Check native semantics first, then inspect keyboard behavior, focus flow, accessible names, and screen-reader output where relevant.\"\nmetadata:\n  category: accessibility\n  priority: medium\n  difficulty: beginner\n  estimatedTime: \"5\"\n  source: frontendchecklist.io\n  url: https:\/\/frontendchecklist.io\/rules\/accessibility\/empty-heading\n---\n\n# Ensure headings contain text\n\nEmpty headings create 'ghost' stops in the document outline, confusing users who rely on headings to navigate and understand the page structure.\n\n## Quick Reference\n\n- Add visible, descriptive text to all heading elements (h1-h6)\n- Avoid using headings solely for styling or as empty placeholders\n- Ensure document structure is meaningful for screen reader navigation\n\n## Check\n\nFind any heading tags (h1 through h6) that are empty or contain only non-perceivable whitespace.\n\n## Fix\n\nAdd descriptive text content to the empty heading or remove the heading tag if it's not needed.\n\n## Explain\n\nExplain why meaningful heading content is vital for document navigation and accessibility.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Ensure headings contain text. Flag exact elements, roles, labels, focus behavior, or keyboard interactions that violate the rule, and note how to verify the fix with browser accessibility tooling or assistive tech.\n\n---\n\nFor full implementation details, code examples, and framework-specific guidance,\nsee `references\/rule.md`.\n\nRule page: https:\/\/frontendchecklist.io\/rules\/accessibility\/empty-heading\n","use_cases":["Reviewing HTML for empty headings during accessibility audits","Ensuring proper document structure for screen reader users","Validating heading content during frontend development"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/empty-heading\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:00:46.000000Z","updated_at":"2026-11-23T04:55:08.000000Z","seo_title":"Ensure Headings Contain Text Accessibility Check","seo_description":"Ensure all heading elements contain visible text for accessibility. Check for empty headings and improve document structure for screen readers and navigation.","seo_keywords":["accessibility check for headings","empty heading validation","screen reader friendly headings","HTML heading content check","document structure validation"]}}