ARIA Attributes
====================
Introduction
The Accessible Rich Internet Applications (ARIA) Attributes are a set of Accessibility features built into HTML5 that allow web applications to provide a better experience for users with disabilities. ARIA Attributes enable developers to make their web pages more accessible, usable by Screen Readers, and compatible with Assistive Technologies.
History
The ARIA Attributes were first introduced in the HTML5 specification in 2013 as part of the W3C’s Accessibility Initiative. The goal was to provide a Standardized Way for web applications to communicate their Accessibility features to Assistive Technologies like Screen Readers.
List of ARIA Attributes
Overview
ARIA Attributes are categorized into several groups, including Spatial and Directional Information, Events, Notifications, and more. Each attribute has its own set of Possible Values, which can be used to customize the behavior of the attribute in different Contexts.
Spatial and Directional Information
[ARIA](/ARIA)-labelledby: associates a Label element with an ID that identifies a visual representation or Description.- Example:
<span [ARIA](/ARIA)-labelledby="[Description](/Description)">[Description](/Description)</span>
- Example:
[ARIA](/ARIA)-<a href="/Label" class="missing-article">Label</a>: provides an alternative text for a visual representation or Description.- Example:
<button [ARIA](/ARIA)-<a href="/Label" class="missing-article">Label</a>="Click me!">Click me!</button>
- Example:
Events
[ARIA](/ARIA)-clickable: enables Event Listeners that respond to Clicks on the element.- Example:
<input [ARIA](/ARIA)-clickable="true">
- Example:
[ARIA](/ARIA)-<a href="/Pressed" class="missing-article">Pressed</a>: tracks whether an element has been clicked or Pressed.- Example:
<input type="checkbox" [ARIA](/ARIA)-<a href="/Pressed" class="missing-article">Pressed</a>="false">
- Example:
Notifications
[ARIA](/ARIA)-<a href="/Label" class="missing-article">Label</a>for Notifications that are displayed below the content.- Example:
<button [ARIA](/ARIA)-<a href="/Label" class="missing-article">Label</a>="Click me!">Click me!</button>
- Example:
[ARIA](/ARIA)-date: displays a date and Time associated with an element.- Example:
<span [ARIA](/ARIA)-date="2022-01-01">January 1, 2022</span>
- Example:
Focus and Selection
[ARIA](/ARIA)-focused: indicates the current Focus element for a visual representation or Description.- Example:
<button [ARIA](/ARIA)-focused="true">Click me!</button>
- Example:
[ARIA](/ARIA)-selected: tracks whether an element is currently selected in an Interface.- Example:
<input type="checkbox" [ARIA](/ARIA)-selected="false">
- Example:
States and Attributes
[ARIA](/ARIA)-<a href="/Label" class="missing-article">Label</a>for Accessibility descriptions of a visual representation or Description.- Example:
<span [ARIA](/ARIA)-<a href="/Label" class="missing-article">Label</a>="Button color: blue">Click me!</span>
- Example:
[ARIA](/ARIA)-invalid: indicates that an element is not valid in the current context.- Example:
<input type="email" [ARIA](/ARIA)-invalid="true">
- Example:
Relationships
[ARIA](/ARIA)-owns: specifies a visual representation or Description that owns a related element.- Example:
<button>Button</button> <span [ARIA](/ARIA)-owned="button">Click me!</span>
- Example:
[ARIA](/ARIA)-associatedrole: provides an alternative role for an element, such as a header or heading.- Example:
<header>Header</header> <h1 [ARIA](/ARIA)-associatedrole="title">Title</h1>
- Example: