aria-hidden - Accessibility | MDN (2024)

The aria-hidden attribute can be used to hide non-interactive content from the accessibility API.

Adding aria-hidden="true" to an element removes that element and all of its children from the accessibility tree. This can improve the experience for assistive technology users by hiding:

  • Purely decorative content, such as icons or images
  • Duplicated content, such as repeated text
  • Offscreen or collapsed content, such as menus

The presence of the aria-hidden attribute hides content from assistive technology but doesn't visually hide anything.

aria-hidden="true" should not be used on elements that can receive focus. Additionally, since this attribute is inherited by an element's children, it should not be added onto the parent or ancestor of a focusable element.

Warning: Do not use aria-hidden="true" on focusable elements.

An element's hidden status is based on whether it is rendered. Rendering is usually controlled by CSS. For example, an element whose display property is set to none via CSS is not rendered. An element is considered hidden if it, or any of its ancestors are not rendered or have their aria-hidden attribute value set to true. Note that an element and its children that has aria-hidden="true" declared on it will still be visible, unless also hidden by CSS.

Use caution when using aria-hidden to hide visibly rendered content from assistive technologies. You should not be hiding visible content unless doing so improves the experience for users of assistive technologies by removing redundant or extraneous content. Only when identical or equivalent meaning and functionality is exposed to assistive technologies can removing visible content from the accessibility API be considered.

Note: Consider all disabilities when hiding visibly rendered content from assistive technologies. Not all users of assistive technology are visually impaired. If visible content doesn't match text content in the accessibility API, the user experience will be negatively impacted for sighted users.

On the surface, the aria-hidden="true" and the role="presentation" and its synonym role="none" seem similar, but the intent behind each is different.

  • aria-hidden="true" will remove the entire element from the accessibility API.
  • role="presentation" and role="none" will remove the semantic meaning of an element while still exposing it and its content to assistive technology.

aria-hidden="true" should not be added when:

In all three scenarios, the attribute is unnecessary to add because the element has already been removed from the accessibility tree. Visually hiding elements with display or visibility hides content from the screen and from assistive technologies.

Using aria-hidden="false" will not re-expose the element to assistive technology if any of its parents specify aria-hidden="true".

aria-hidden - Accessibility | MDN (2024)
Top Articles
Why Professional Traders Never Use Stop Losses
9 Ways to Buy Cardano (ADA) in 2024 - A Simple 3-Step Guide
Newsweek Wordle Clues
Craigslist Mount Pocono
What Dinosaurs Are Scavengers In Jurassic World Evolution 2 - Stunningdino.com
Academic calendar 2023 - 2024 - student.uva.nl
Itshayss
Mall At Millenia Nordstrom
Grifolsplasma.com Donor-Portal
Sunset Intimates Argyle
50 Shades Of Grey Movies123
Reston, VA | Reston Demographics in 2024
Final Fantasy VIII – Guide and Walkthrough
Top 5 Online Study Websites and Virtual Work Spaces - MyStudentHQ
Craigslist Westchester Free Stuff
Pizza & Pasta Paradies Pizzaservice, Räcknitzhöhe 35a in 01217 Dresden
Best Airbnbs Near Me
Getaway Shootout Github
Elevating security and disease forecasting in smart healthcare through artificial neural synchronized federated learning
O'reilly's Chillicothe Missouri
25Cc To Tbsp
Montgomery County District Court Commissioner's Office
Game Akin To Bingo Nyt
West Coast Budmail
Publix Daily Soup Menu
The Best Online Pharmacies in Kenya - The Best in Kenya
24 Hour Drive Thru Car Wash Near Me
Craigslist Ludington Michigan
Craigslist Mendocino Coast
Brake Masters 228
Eulogy Zero Ror2
How Sonny and Cher Went From TV's Power Couple to Bitter Exes
Play It Again Sports Knoxville Photos
Walmart Tire Center York Pa
Primepoint Business Access
Milf Hunting In Another World Chapter 19
Rs3 Rituals
Driving Directions To The Closest Dollar Tree
Manhungay
Craigslist Portland Oregon Motorcycles
„The Boogeyman“: Kritik zum Kinostart
Metro 72 Hour Extension 2022
Dairyland Car Insurance Review (2024)
1,000+ Waitress jobs in New York
Hallmark White Coat Ceremony Cards
Judy Joo Husband David Allen
Menteri LHK terbitkan aturan yang larang pejuang lingkungan dipidana, akankah menghentikan kriminalisasi? - BBC News Indonesia
Ultibro® Breezhaler®, 85 Mikrogramm / 43 Mikrogramm, Hartkapseln mit Pulver zur Inhalation - PatientenInfo-Service
Bulletbound Codes
Craigslist Metal Roofing
Newjetnet Aa.com
Latest Posts
Article information

Author: Terence Hammes MD

Last Updated:

Views: 6443

Rating: 4.9 / 5 (49 voted)

Reviews: 80% of readers found this page helpful

Author information

Name: Terence Hammes MD

Birthday: 1992-04-11

Address: Suite 408 9446 Mercy Mews, West Roxie, CT 04904

Phone: +50312511349175

Job: Product Consulting Liaison

Hobby: Jogging, Motor sports, Nordic skating, Jigsaw puzzles, Bird watching, Nordic skating, Sculpting

Introduction: My name is Terence Hammes MD, I am a inexpensive, energetic, jolly, faithful, cheerful, proud, rich person who loves writing and wants to share my knowledge and understanding with you.