Favorites

HTML aria-hidden ARIA Attribute

aria-hidden
ARIA AttributeThis ARIA attribute is supported by all modern browsers.
Updated 28th November 2026

The aria-hidden attribute removes an element and all of its children from the accessibility tree, so screen readers ignore it even though it is still visible.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

Description

The aria-hidden attribute hides an element from assistive technology. With aria-hidden="true", the element and everything inside it are removed from the accessibility tree, but it stays visible on screen and can still be clicked. It is used for decorative or duplicated content, such as an icon next to a text label or a decorative SVG.

Never put aria-hidden="true" on an element that can receive focus, or on a container with focusable children. Keyboard users could still Tab to it, but screen readers would announce nothing. To hide interactive content from everyone, use the hidden attribute or display: none, and to make a whole region non-interactive, use inert.

A child can't undo it: aria-hidden="false" inside a hidden parent does not make the child visible to screen readers again. Content hidden with display: none or visibility: hidden is already hidden from assistive technology and doesn't need the attribute.

Properties

Type
Global
Value
true/false
Default
false
Used with
All elements (global attribute)

Syntax

<element aria-hidden="true | false">

Values

  • trueThe element and its descendants are hidden from the accessibility tree.
  • falseThe default: the element is exposed normally.

Example

<button type="button">
<svg aria-hidden="true" width="16" height="16" viewBox="0 0 16 16"><path d="M2 8h12M8 2v12" stroke="currentColor" stroke-width="2"/></svg>
Add item
</button>

Browser Support

The following information will show you the current browser support for the aria-hidden ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.

This ARIA attribute is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee