HTML aria-describedby ARIA Attribute
The aria-describedby attribute links an element to other elements on the page that give it a description, such as a hint or error message for a form field.
Description
The aria-describedby attribute connects an element to one or more other elements that contain its accessible description. The value is a space-separated list of id values, and the text of those elements is joined to make the description. Screen readers usually read the description after the name and role, sometimes after a short pause.
A common use is a hint next to a form field, such as the password rules under a password input. The name says what the field is ("Password"), and the description adds extra detail ("At least 8 characters"). The referenced elements can be hidden with hidden or display: none and still be used, although visible text is usually better for everyone.
Descriptions are read as plain text, so links, lists and other structure inside them are lost. For long or structured content, use aria-details. For a text description that isn't on the page, use aria-description.
Properties
- Type
- Relationship
- Value
- ID reference list
- Default
- None
- Used with
- All elements (global attribute)
Syntax
<element aria-describedby="id1 id2">
Values
- ID reference listOne or more
idvalues of the elements that describe this one.
Example
Browser Support
The following information will show you the current browser support for the aria-describedby ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





