38. What is aria-labelledby?

aria-labelledby identifies another element or elements whose text provides the accessible name. It is useful when a visible heading or label already exists in the document.

Key Takeaways
  • aria-labelledby can reuse visible text as an accessible name.

  • The referenced IDs must identify appropriate naming content.

Knowledge Check

What does aria-labelledby reference?