What are the differences between label, aria-label, aria-labelledby and aria-describedby? | Accessible Web (2024)

Skip to content

Register for our upcoming webinars and office hours!View upcoming events

Overwhelmed by WCAG success criteria?Accessible Web RAMP is the easiest way to discover, understand, and resolve web accessibility issuesthat matter most to your users.Try for Free

What are the differences between label, aria-label, aria-labelledby and aria-describedby? | Accessible Web (2)

Question

There appear to be several ways to put a label on items in order for them to be accessible for users of screen readers or other assistive technologies. Which method of labeling should I use?

Answer

Accessible names help browsers communicate content and functionality to users of assistive technologies. These names are not always visible on the screen, but should match any visible label when present. Situationally, they may be "hidden" within the page's markup and only communicated to assistive technologies being used.

The best strategy to use depends on the context and purpose of the interactive component that needs an accessible name.

  • The native HTML label tag should be used as an accessible name for native elements when possible. This is possible when using elements like the form components <input> and <textarea>in addition to the <id> and <for> attributes.This ensures that the visible label is programmatically associated with the relevant component and helps avoid WCAG failures like Success Criterion 2.5.2 Label in Name where the accessible name needs to match the visible label. Using native functionality also helps ensure that the site is as robust as possible.
  • The aria-label attribute can be used to create an accessible name for an element that doesn't have a visible text label. For example, this method is often used for interactive components that use a commonly understood symbol as their visible label. Typical examples of graphic labels include a magnifying glass for a search input or an "X" for a button that closes content. Since these components don't have text in their visible label, an aria-label can communicate the same meaning to users who aren't interacting with the page visually.
  • The aria-labelledby attributecreates an accessible name by referencing another element on the page. This is commonly used when text is used as a visible label for a custom widget.
  • The aria-describedby attribute does not create an accessible name. Instead, it is used when additional information is provided for an element. It enables an author to associate a text string, such as instructions, format requirements, or an error message, with an element on the page. Where a visual user may see that nearby text provides more information about how to use a component, the aria-describedby attribute communicates the same information to users of assistive technology who are not interacting with the page visually.

Visit the Web Accessibility Initiative's ARIA Authoring site for more information.

Free Tools to Continue Learning

What are the differences between label, aria-label, aria-labelledby and aria-describedby? | Accessible Web (3)

Accessible Web RAMP

Monitor your website and manage your progress towards WCAG conformance.

What are the differences between label, aria-label, aria-labelledby and aria-describedby? | Accessible Web (4)

Accessible Web Academy

Career specific courses to help power up your accessibility knowledge.

How Accessible is Your Website?

What are the differences between label, aria-label, aria-labelledby and aria-describedby? | Accessible Web (2024)
Top Articles
'I'd Be A Terrible Father' — Rich Dad Poor Dad's Robert Kiyosaki And His Wife Made The Decision To Never Have Children, Says Nowadays Kids Are A 'Bunch Of Snowflakes' That Couldn't Handle A Tough Marine Dad Like Him
Best Way to Invest $1,000 For a Child
Navicent Human Resources Phone Number
Jail Inquiry | Polk County Sheriff's Office
Warren Ohio Craigslist
Lamb Funeral Home Obituaries Columbus Ga
Ub Civil Engineering Flowsheet
Lycoming County Docket Sheets
World Cup Soccer Wiki
What’s the Difference Between Cash Flow and Profit?
Assets | HIVO Support
Aktuelle Fahrzeuge von Autohaus Schlögl GmbH & Co. KG in Traunreut
OSRS Dryness Calculator - GEGCalculators
Best Food Near Detroit Airport
Red Tomatoes Farmers Market Menu
Hair Love Salon Bradley Beach
VMware’s Partner Connect Program: an evolution of opportunities
London Ups Store
Lonesome Valley Barber
Band Of Loyalty 5E
Accuweather Mold Count
Td Small Business Banking Login
FDA Approves Arcutis’ ZORYVE® (roflumilast) Topical Foam, 0.3% for the Treatment of Seborrheic Dermatitis in Individuals Aged 9 Years and Older - Arcutis Biotherapeutics
All Obituaries | Verkuilen-Van Deurzen Family Funeral Home | Little Chute WI funeral home and cremation
Colonial Executive Park - CRE Consultants
JVID Rina sauce set1
Pulitzer And Tony Winning Play About A Mathematical Genius Crossword
Annapolis Md Craigslist
Miller Plonka Obituaries
Craigslist Boerne Tx
Craigslist Sf Garage Sales
Puffin Asmr Leak
Donald Trump Assassination Gold Coin JD Vance USA Flag President FIGHT CIA FBI • $11.73
Nextdoor Myvidster
Everything You Need to Know About NLE Choppa
Despacito Justin Bieber Lyrics
Tenant Vs. Occupant: Is There Really A Difference Between Them?
Why Gas Prices Are So High (Published 2022)
Craigslist Putnam Valley Ny
Indio Mall Eye Doctor
Express Employment Sign In
Www Usps Com Passport Scheduler
Live Delta Flight Status - FlightAware
Ezpawn Online Payment
Exam With A Social Studies Section Crossword
8776725837
Hawkview Retreat Pa Cost
Ajpw Sugar Glider Worth
Craigslist Marshfield Mo
Bones And All Showtimes Near Emagine Canton
Ocean County Mugshots
Die 10 wichtigsten Sehenswürdigkeiten in NYC, die Sie kennen sollten
Latest Posts
Article information

Author: Mrs. Angelic Larkin

Last Updated:

Views: 5712

Rating: 4.7 / 5 (67 voted)

Reviews: 90% of readers found this page helpful

Author information

Name: Mrs. Angelic Larkin

Birthday: 1992-06-28

Address: Apt. 413 8275 Mueller Overpass, South Magnolia, IA 99527-6023

Phone: +6824704719725

Job: District Real-Estate Facilitator

Hobby: Letterboxing, Vacation, Poi, Homebrewing, Mountain biking, Slacklining, Cabaret

Introduction: My name is Mrs. Angelic Larkin, I am a cute, charming, funny, determined, inexpensive, joyous, cheerful person who loves writing and wants to share my knowledge and understanding with you.