Today, we're going to go over the practical integration of web accessibility in websites using WAI-ARIA.
ARIA (a.k.a Accessible Rich Internet Applications) is a framework, developed by the W3C group, that empowers developers to build web applications that are more accessible to users with disabilities. It provides additional semantics through a set of attributes that you can add to HTML
elements, making it easier for assistive technologies, such as screen readers, to interpret.
One key thing to know about WAI-ARIA attributes is that they don't mess with the structure of the webpage or the DOM. They only impact assistive technologies and it's users.
Features
👉 Roles define what an element is or does on the page
<div role="navigation">Navigation Menu ...</div>
Learn more about roles
👉 Properties provide additional semantics to an element
<input type="text" aria-required="true" placeholder="Enter your name">
aria-required="true" property specifies that the form input is mandatory to be filled
out.
👉 States define the current condition of an element
<div aria-hidden="true"...>Hidden
content</div>
Learn more about states and properties