Black Lives Matter! ✊🏾

aria-describedby

Identifies the element (or elements) that describes the object. aria-describedby (property)

Links about aria-describedby

  1. Short note on aria-label, aria-labelledby, and aria-describedby

    posted on

    Be careful when you use the aria-label, aria-labelledby, and aria-describedby attributes, because they do not work consistently with all HTML elements. This is a short note on when (and when not) to u

  2. Describing aria-describedby

    posted on

    A well-designed user interface (UI) should clearly identify important content and controls. Often people correlate this to using prominent visual cues to help guide individuals through a task or point

  3. Using the aria-describedby attribute

    posted on by MDN

    The aria-describedby attribute is used to indicate the IDs of the elements that describe the object. It is used to establish a relationship between widgets or groups and text that described them. This is very similar to aria-labelledby: a label describes the essence of an object, while a description…

Code sample

<button class="notifications" aria-describedby="notifications-desc">  
Notifications
</button>
<div role="tooltip" id="notifications-desc">View and manage notifications settings</div>