ARIA (Accessible Rich Internet Applications) is a set of HTML tags and attributes standardized by the W3C (World Wide Web Consortium) to make rich internet applications accessible to assistive technology.
It enhances the experience for users who rely on screen readers and other assistive devices. Some of the most common ARIA attributes include:
aria-label
: Provides a textual description for an element without visible text. Example:"Submit button"
.aria-hidden
: Hides elements from assistive technology when they are not relevant. Example:"true"
to hide decorative icons.aria-live
: Notifies users about dynamic content changes, such as real-time updates. Example:"polite"
to announce changes without interrupting navigation.role
: Defines the purpose of an element, such as"button"
,"menu"
, or"dialog"
.aria-describedby
: Associates an element with a detailed description elsewhere on the page.
These attributes help fill accessibility gaps in interactive elements like dropdown menus, sliders, and custom widgets.