ARIA Roles
ARIA roles are labels added to elements on a web page to tell assistive technologies, such as screen readers, what kind of element something is and what it does. They are part of a W3C specification called Accessible Rich Internet Applications (ARIA), which helps convey meaning that visual layout alone cannot communicate. For example, a role can identify a section of a page as navigation or mark content as a definition of a term.
ARIA roles are one category of semantics defined by the W3C's WAI-ARIA specification, alongside states and properties. A role defines a type of user interface element and communicates its accessibility semantics to assistive technologies. Roles can describe elements that do not natively exist in HTML, or that exist but lack full browser support, and include categories such as structural roles (which convey the meaning of page structures) and landmark roles (which identify commonly recurring blocks of content). Because native HTML elements often carry equivalent semantics by default, ARIA roles are generally applied where native semantics are unavailable or insufficient. Note that correct role usage supports, but does not by itself guarantee, an accessible experience; manual and assistive technology testing remain necessary.
Why it matters
ARIA roles help bridge the gap between what a page communicates visually and what assistive technologies can perceive programmatically. Sighted users can infer that a block of links at the top of a page is navigation, or that a highlighted phrase is defining a term, from visual layout and styling alone. Screen reader users and others relying on assistive technologies do not have access to those visual cues, so roles supply the semantic meaning that layout cannot convey on its own. When roles are applied correctly, they can make page structure and interactive components more understandable and navigable.
Because ARIA roles can describe elements that do not natively exist in HTML, or that exist but lack full browser support, they are a valuable tool for making custom and rich interface components accessible. However, roles are powerful precisely because they override or supplement default semantics, which means incorrect or unnecessary use can actively harm the experience by misrepresenting an element to assistive technology. Where a native HTML element already carries the equivalent semantics, using that element is generally preferable to adding a role.
It is important to recognize that correct role usage supports, but does not by itself guarantee, an accessible experience. Automated tools detect only a portion of potential issues, and proper behavior of roles across browsers and assistive technologies must be verified through manual and assistive technology testing. Applying roles is one part of a broader accessibility effort rather than a standalone solution.
Who it's relevant to
Inside ARIA Roles
Common questions
Answers to the questions practitioners most commonly ask about ARIA Roles.