inert attribute

An HTML attribute that makes an element and everything inside it unclickable, unfocusable and hidden from assistive technology.

In more detail

Setting inert on the main application while a modal is open blocks the mouse, keyboard and screen readers from the background in one step. aria-hidden only hides content from screen readers and leaves it focusable, so inert is the stronger choice.

Related terms

Taught in

References