aria-describedby attribute | ariaDescribedby property
Sets or retrieves a list of elements that describe the current object.
![]() |
Syntax
| HTML |
|---|
<element aria-describedby="p" ... > |
| JavaScript |
|---|
object.setAttribute("aria-describedby",value);var value = object.getAttribute("aria-describedby");
|
Property values
Type: String
A space-separated list of id property values.
Standards information
- Accessible Rich Internet Applications (WAI-ARIA) 1.0, Section 6.6
Remarks
| Used in Roles |
|
|---|
This property defines element relationships and associations that cannot be readily determined from the document structure.
The aria-describedby property is intended to provide additional information which some users might need, and supplements the basic information provided by label.
If more than one id property is specified, all elements are combined together to create a single description.
Note For cross-browser compatibility, always use the WAI-ARIA attribute syntax to access and modify ARIA properties, for example
object.setAttribute("aria-valuenow", newValue). See also
- Accessible Rich Internet Applications (ARIA)
- Reference
- aria-controls
- aria-flowto
- aria-labelledby
- aria-owns
- aria-posinset
- aria-setsize
Show:
