List of Aria attributes with explanation
- User
List of Aria attributes with explanation
- Assistant
ARIA (Accessible Rich Internet Applications) attributes are used to enhance the accessibility of web applications, especially for users who rely on screen readers and other assistive technologies. Here is a list of some commonly used ARIA attributes along with their explanations:
-
aria-label: Provides a label for an element. Useful for elements that have no visible text label, ensuring screen readers can identify the element's purpose.
-
aria-labelledby: Identifies the element (or elements) that labels the current element, linking it to a visible label.
-
aria-describedby: Identifies the element (or elements) that describes the current element. This is often used to provide additional guidance or context on the element's functionality.
-
aria-hidden: Indicates whether an element is perceivable to users. Setting it to
truewill hide the element from assistive technologies. -
aria-live: Communicates updates to a section of the page without it having to receive focus, indicating the "politeness" level for announcements. Values include
off,polite, andassertive. -
aria-atomic: Specifies whether assistive technologies will present all or only parts of changed content when text or content updates occur. If
true, the entire region is presented to the user. -
aria-controls: Identifies the element (or elements) whose contents or presence are controlled by the current element.
-
aria-expanded: Indicates whether a widget is expanded or collapsed, such as a dropdown or an accordion section.
-
aria-haspopup: Indicates if an element has a popup such as a dropdown, menu, tooltip, or dialog. It helps convey available interactions.
-
aria-checked: Indicates the current "checked" state of checkboxes, radio buttons, or other tri-state widgets like "mixed" (indeterminate) states.
-
aria-disabled: Indicates that an element is perceivable but disabled, so it is not editable or focusable.
-
aria-selected: Indicates the current selection state of elements like tabs, options in a listbox, or other selectable items in a group.
-
aria-required: Indicates that user input is required for a form element before a form can be submitted.
-
aria-role: While not an attribute, the
roleattribute is pivotal in ARIA. It defines the type of element (e.g.,alert,button,dialog,tab,tabpanel) so that assistive technologies can understand its purpose. -
aria-busy: Indicates whether an element, and its subtree, are in a busy state. When set to
true, it means content is being updated.
These attributes, among others, are essential for developing accessible web applications, ensuring that all users, regardless of the technology they use, can have an equitable experience on the web.
-