aria-label
aria-label is a piece of code added to a web element, such as a button or link, that gives it a text name for assistive technology to announce. When a screen reader reaches an element with an aria-label, it reads the label text aloud, which helps when the element has no visible text of its own. It is part of ARIA, a set of markup created by the W3C to make web content more accessible.
aria-label is an attribute defined by the W3C's Accessible Rich Internet Applications (ARIA) specification that assigns a string value serving as the accessible name for an element. It is commonly used to name objects that lack visible or programmatically associated text, such as icon-only buttons, and the value is exposed to assistive technologies like screen readers. The attribute applies only to elements whose role permits naming; per ARIA guidance, roles that prohibit naming will not expose an aria-label value. Its use is described in WCAG 2.2 technique ARIA6 as one method for providing labels for objects, though conformance with a specific WCAG success criterion depends on correct implementation and should be verified through manual and assistive technology testing. This entry describes the technical attribute and is not legal advice.
Why it matters
Many interface elements convey their purpose visually without any readable text. An icon-only button showing a magnifying glass, a close control marked with an X, or a link wrapped around an image may be perfectly clear to sighted users but present nothing meaningful to someone using a screen reader. When such an element lacks an accessible name, assistive technology may announce only its role, such as "button," leaving the user unable to determine what it does. aria-label addresses this gap by supplying a text name that assistive technologies can announce, making otherwise unlabeled controls usable.
Providing accessible names is closely tied to WCAG expectations around labeling and name, role, and value. The W3C describes aria-label in technique ARIA6 as one method for providing labels for objects. However, meeting a specific success criterion depends on correct implementation, and using aria-label does not by itself guarantee conformance or an accessible experience. An aria-label with vague, inaccurate, or duplicated text can be as confusing as no label at all, and automated tools may detect that a label is present without evaluating whether it is meaningful.
Because aria-label overrides other potential sources of an element's accessible name, careless use can also suppress visible text that users rely on. This makes verification important: the attribute should be confirmed through manual review and testing with actual assistive technology rather than assumed to work from its presence in the markup alone. This entry describes the technical attribute and is not legal advice.
Who it's relevant to
Inside aria-label
Common questions
Answers to the questions practitioners most commonly ask about aria-label.