# ARIA Specialist reference: Landmark and Region Overuse Part of the `aria-specialist` skill. Read this only when the task reaches these sections. ## Landmark and Region Overuse Landmarks help screen reader users navigate between major sections of a page. Too many landmarks create noise and reduce their usefulness. Per the W3C ARIA Authoring Practices Guide: a `region` landmark is for content "sufficiently important for users to be able to navigate to the section." Most `
` elements on a typical long page should NOT be region landmarks -- heading navigation (H key) already provides section discovery. ### When `
` Creates a Region Landmark `
` with an `aria-label` or `aria-labelledby` creates a `region` landmark. Without a label, it is just a generic grouping element with no landmark role. Only label sections that represent genuinely important navigable destinations beyond what heading navigation provides. ### `aria-labelledby` vs `aria-label` on Sections with Headings The APG states: "If an area begins with a heading element (e.g. h1-h6) it can be used as the label for the area using the `aria-labelledby` attribute. If an area requires a label and does not have a heading element, provide a label using the `aria-label` attribute." This means: 1. **When a section has a heading, prefer `aria-labelledby` pointing to the heading over `aria-label`.** This links the landmark name to the visible heading text, creating one consistent identity rather than two separate announcements. 2. **Never use `aria-label` with text that is different from the section's heading.** Screen reader users navigating by landmarks hear the `aria-label` text; navigating by headings they hear the heading text. If these differ, the section appears to be two different things. 3. **If `aria-label` would duplicate the heading text exactly, the `aria-label` is redundant -- use `aria-labelledby` instead.** Duplicating the same string in two places creates a maintenance burden and risks drift. ```html

GIT Going with GitHub

GIT Going with GitHub

GIT Going with GitHub

``` ### What to Flag - `
` where the section also has a heading -- should use `aria-labelledby` pointing to the heading instead - `
` where "X" says something different from the section's heading -- creates confusion between landmark and heading navigation - `
` wrapping decorative content, stats bars, banners, or content that does not warrant landmark navigation - `role="region"` on code snippets, install command blocks, demo panels, or other non-navigable content already inside `
` -- these are not navigable destinations and heading navigation (H key) already provides access - Promotional or ephemeral content (event banners, announcements, CTAs) wrapped in a region landmark -- these are not page structure; they are transient content that should not pollute the landmark list - Pages exceeding the canonical landmark count. A typical single-page informational site needs only 5-6 landmarks: banner, navigation(s), main, contentinfo. Add region landmarks only for genuinely important navigable sections (e.g., a search results panel or a user dashboard sidebar) - `
` given `role="region"` for non-navigable content - Fixes that change `
` to `
` just to satisfy "aria-label requires a role" when the real fix is to remove the `aria-label` - Nested `
` inside a parent section that already has a heading covering the same content -- the inner section rarely needs its own landmark ### `role="region"` Antipatterns The following are common misuses. Content inside `
` is already in a landmark -- adding `role="region"` to subdivisions creates unnecessary clutter: ```html
brew install example-tool

Before

...
brew install example-tool

Before

...
``` ### The Fix for Unnecessary Regions If a `
` has `aria-label` but the content is not a major navigable section: ```html
...
...
``` Remove `aria-label` and change to `
`, or keep `
` without `aria-label` if the grouping still makes semantic sense. ## Accessible Names and Descriptions Per the W3C APG "Providing Accessible Names and Descriptions" guide, these are the cardinal rules for naming interactive elements. ### Five Cardinal Rules 1. **Heed warnings:** Never use a naming technique the ARIA specification warns against for that role 2. **Prefer visible text:** Use techniques that source the name from visible text (native HTML labels, `aria-labelledby`) over invisible text (`aria-label`) whenever possible 3. **Prefer native techniques:** Use native HTML labeling (`