{"data":{"slug":"github-thedaviddias-front-end-checklist-skills-landmark-one-main-d6c6ec0f9e33","title":"Ensure One Main Landmark for Accessibility","summary":"Verify that a webpage contains exactly one main landmark, allowing assistive technologies to navigate directly to the primary content.","url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-landmark-one-main-d6c6ec0f9e33","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/github-thedaviddias-front-end-checklist-skills-landmark-one-main-d6c6ec0f9e33","markdown_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-landmark-one-main-d6c6ec0f9e33.md","download_url":"https:\/\/skillshunter.net\/skills\/github-thedaviddias-front-end-checklist-skills-landmark-one-main-d6c6ec0f9e33\/download","category":{"slug":"content-editorial","name":"Content & Editorial"},"editor_note":"Ensure the page has exactly one `<main>` element and avoid multiple elements with `role='main'`.","instructions":"---\nname: landmark-one-main\ndescription: \"Use when reviewing rendered HTML, interactive components, or design-system patterns related to Use exactly one main landmark. 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\/landmark-one-main\n---\n\n# Use exactly one main landmark\n\nA single main landmark allows keyboard and screen reader users to jump directly to the primary content of the page, bypassing repetitive navigation.\n\n## Quick Reference\n\n- Ensure each page has exactly one `<main>` element\n- Avoid multiple elements with `role='main'`\n- Provides a clear starting point for the page's primary content\n\n## Check\n\nCount the number of <main> elements or elements with role='main' on the page to ensure there is exactly one.\n\n## Fix\n\nCombine multiple main content areas into a single <main> element or remove the 'role=main' attribute from extra containers.\n\n## Explain\n\nExplain how the main landmark acts as a primary navigation target for assistive technologies, and why multiple main areas cause confusion.\n\n## Code Review\n\nReview the rendered markup and interactive states that affect Use exactly one main landmark. 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\/landmark-one-main\n","use_cases":["Reviewing HTML structure for accessibility compliance","Testing interactive components for screen reader compatibility","Auditing design-system patterns for semantic markup"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/thedaviddias\/Front-End-Checklist\/blob\/e8d14d049010e2ce25afcd5e8609dfcbbe63e47e\/skills\/landmark-one-main\/SKILL.md","source_commit":"e8d14d049010e2ce25afcd5e8609dfcbbe63e47e","license":null,"version":null,"listing_approved_at":"2026-11-23","created_at":"2026-11-22T16:49:17.000000Z","updated_at":"2026-11-23T04:55:22.000000Z","seo_title":"Ensure One Main Landmark for Accessibility","seo_description":"Ensure your webpage has exactly one main landmark for better accessibility. Use this checklist to review and fix main landmark issues.","seo_keywords":["accessibility checklist","main landmark validation","screen reader compatibility","HTML accessibility audit","assistive technology review"]}}