Skip to content

WAI‐ARIA Documentation

jorgeveji112 edited this page Dec 3, 2024 · 1 revision

WAI-ARIA Standards

General Description

WAI-ARIA (Web Accessibility Initiative - Accessible Rich Internet Applications) is a set of standards developed by the W3C to improve the accessibility of web applications. These standards are particularly important for dynamic content and user interface components developed with technologies like JavaScript, HTML, and CSS. WAI-ARIA defines roles, states, and properties that developers can apply to make web content and applications more accessible to people with disabilities. By providing additional semantic meaning, WAI-ARIA enables assistive technologies, such as screen readers, to interpret the content and functionality more effectively. This ensures a more inclusive experience for users with visual, motor, auditory, or cognitive impairments.

Attributes Used in the Project

The following WAI-ARIA attributes are implemented in this project:

  • aria-label: Provides an accessible name for elements without visible text.
  • aria-labelledby: Associates elements with other elements that provide their labels.
  • aria-hidden: Ensures that elements meant to be ignored by assistive technologies are skipped.

Examples of Implementation

Here are examples of how these attributes would be applied in the project:

Example 1: Button with aria-label

<button aria-label="Submit Form"></button>

Example 2: Input field with aria-labelledby

<label id="username-label">Username</label>
<input id="username" aria-labelledby="username-label" type="text" />

Example 3: Hidden element

<div aria-hidden="true">This content is not visible to screen readers.</div>

External References

For more details and best practices on using WAI-ARIA, refer to the following resources:

Clone this wiki locally