Skip to main content

2 docs tagged with "inert"

View all tags

Aria Hidden

Learn what aria-hidden really does, when it is safe, and when it quietly breaks your page. Compare hidden, display none, visibility hidden, aria-hidden, inert, and visually hidden text. Never put aria-hidden on something focusable. Includes a hiding-methods lab with real focus tests, a modal background lab, and a live aria-hidden checker.

The inert Attribute

Learn the inert attribute: one attribute that makes part of a page unreachable by mouse, keyboard, and screen reader. Covers what inert changes, how it differs from disabled, hidden, and aria-hidden, patterns such as off-canvas menus and saving states, fallbacks, accessibility, and security notes. Includes a focus lab, an off-canvas menu lab, and a which-tool quiz.