No ARIA is better than Bad ARIA Functionally, ARIA roles, states, and properties are analogous to a CSS for assistive technologies. For screen reader users, ARIA controls the rendering of their non-visual experience. Incorrect ARIA misrepresents visual experiences, with potentially devastating effects on their corresponding non-visual experiences. Before using ARIA or any of the guidance in this document, please take time to understand the following two essential principles. Principle 1: A role is a promise This code: <div role="button">Place Order</div> Is a promise that the author of that <div> has also incorporated JavaScript that provides the keyboard interactions expected for a button. Unlike HTML input elements, ARIA roles do not cause browsers to provide keyboard behaviors or styling. Using a role without fulfilling the promise of that role is similar to making a "Place Order" button that abandons an order and empties the shopping cart. One of the objectives of this guide is to define expected behaviors for each ARIA role. Principle 2: ARIA Can Both Cloak and Enhance, Creating Both Power and Danger The information assistive technologies need about the meaning and purpose of user interface elements is called accessibility semantics. From the perspective of assistive technologies, ARIA gives authors the ability to dress up HTML and SVG elements with critical accessibility semantics that the assistive technologies would not otherwise be able to reliably derive. Some of ARIA is like a cloak; it covers up, or overrides, the original semantics or content. <a role="menuitem">Assistive tech users perceive this element as an item in a menu, not a link.</a> <a aria-label="Assistive tech users can only perceive the contents of this aria-label, not the link text">Link Text</a> On the other hand, some uses of ARIA are more like suspenders or belts; they add meaning that provides essential support to the original content. <button aria-pressed="false">Mute</button> This is ...
First seen: 2025-12-09 10:29
Last seen: 2025-12-09 16:30