Global Attributes

HTML inert attribute

Makes an element and its flat-tree descendants unavailable for ordinary focus and interaction. It is useful for inactive UI; it is not a visual hiding mechanism by itself. Applicability: global HTML attribute, subject to element-specific restrictions and browser support. Boolean syntax: presence enables the state; omit the attribute to disable it. A string value of "false" does not turn it off. Inert descendants are generally omitted from the accessibility tree and cannot receive ordinary focus. The attribute does not dim or visually distinguish the section, so provide a visible state indicator. Use native modal dialog behavior when a modal interaction is required.

Formal Syntax & Structure

html syntaxhtml
inert

Parameters & Attributes

NameTypeDescription
inertbooleanMakes an element and its flat-tree descendants unavailable for ordinary focus and interaction. It is useful for inactive UI; it is not a visual hiding mechanism by itself.

Working Example

Example Snippethtml
<section inert>  <button type="button">Temporarily unavailable</button></section>

Browser Compatibility

Minimum supported versions across modern rendering engines

Widely Available
Chrome
102
Yes
Firefox
112
Yes
Safari
15.5
Yes
Checked desktop BCD snapshot: global inert attribute. Versions denote the recorded start of support (≤ means at least that early), not a guarantee of all behavior. Unresolved mirror and preview rows omitted. Find-in-page behavior has separate compatibility data.
HTML Living Standard
HTML Reference