Aria-labelledby
aria-labelledby is a WAI-ARIA attribute that identifies one or more elements whose text provides the accessible name of the element bearing the attribute.
Architecting Accessibility
aria-labelledby is an ARIA attribute that supplies an accessible name by referencing one or more visible labeling elements.
- How it is used
- Names links, custom controls, and forms by referencing visible text when their accessible names need more context.
- How deep it goes
- Explains when to reference one or several elements and warns that the resulting name can override a native label; stops short of accessibility-tree internals.
- Examples
- Uses a carousel’s “Read more...” link, a payment field named only “Euros,” and a form named by its heading.
- What you can do after
- Operate/configure it by referencing visible text with element IDs and checking that the resulting accessible name remains complete.
Read how Architecting Accessibility explains aria-labelledby →
D3.js in Action, Third Edition
The aria-labelledby attribute identifies one or more elements whose text provides an accessible name for another element.
- How it is used
- Names SVG charts and legends for screen readers by referencing their title and description elements.
- How deep it goes
- Demonstrates D3 code assigning unique IDs and referencing title and desc elements.
- Examples
- Uses a cetacean scatterplot and circle-area and conservation-status legends as examples.
- What you can do after
- Apply it via D3 to give an SVG chart or legend a screen-reader-recognizable name.
Read how D3.js in Action, Third Edition explains aria-labelledby →
Everyday Data Visualization
A WAI-ARIA attribute that supplies an accessible name by referencing the identifiers of visible labeling elements.
- How it is used
- Improves screen-reader access to charts and other elements by reusing visible labels through referenced identifiers.
- How deep it goes
- Defines the distinction from aria-label and gives dynamic chart examples, but stops short of detailed markup syntax.
- Examples
- Uses individually labeled bars in a graph and descriptive text as a fallback when visualization tools limit ARIA support.
- What you can do after
- Apply it via WAI-ARIA to provide concise, dynamically generated accessible names for visual elements.
Read how Everyday Data Visualization explains aria-labelledby →
Related concepts
- accessible nameproduces · An accessible name is the programmatically determined text label by which an interface element is identified to assistive technologies.
- accordionconfigures · An accordion is a user-interface component whose content sections expand or collapse beneath their corresponding headers.
- SVGconfigures · SVG (Scalable Vector Graphics) is an XML-based standard and markup language for describing scalable two-dimensional vector graphics.
- ARIA labelalternative to · The aria-label attribute directly provides an accessible name for an interface element as text.
Questions about aria-labelledby
What is aria-labelledby?
aria-labelledby is a WAI-ARIA attribute that identifies one or more elements whose text provides the accessible name of the element bearing the attribute.
Which Manning books explain aria-labelledby?
Architecting Accessibility, D3.js in Action, Third Edition and Everyday Data Visualization.
What is the difference between aria-labelledby and ARIA label?
aria-labelledby is a WAI-ARIA attribute that identifies one or more elements whose text provides the accessible name of the element bearing the attribute. The aria-label attribute directly provides an accessible name for an interface element as text.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.


