ARIA States & Properties
aria-hidden
Removes an element and descendants from the accessibility tree when true without necessarily hiding them visually. Do not use on focusable elements or their ancestors. False cannot override an ancestor hidden from accessibility or CSS display:none. Value type: boolean or undefined. Accepted values: true, false, undefined. Default or omitted behavior: undefined. Applicable context: global; use for purely decorative nonfocusable content. Use only where allowed for the element’s implicit or explicit role. ARIA describes accessibility semantics; it does not automatically implement the associated behavior. Test with the relevant browser and assistive technology.
Formal Syntax & Structure
html syntaxhtml
aria-hidden="true"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| aria-hidden | boolean or undefined | Accepted values: true, false, undefined. Default or omitted behavior: undefined. Context: global; use for purely decorative nonfocusable content. Requiredness depends on the role. |
Working Example
Example Snippethtml
<button> <span aria-hidden="true">★</span> Favorite</button>