HTML aria-roledescription ARIA Attribute
The aria-roledescription attribute gives a custom, human-readable description of an element's role, replacing the standard role name that screen readers announce.
Description
The aria-roledescription attribute changes the role name that screen readers announce for an element. For example, a <section> that is one slide in a carousel can be announced as "slide" instead of "region". The real role, and the behavior users expect from it, stay the same.
It should be used sparingly. Users learn what standard roles such as "button" mean and what they can do with them, and a custom description can hide that information. It is also not translated by screen readers, so localize the text yourself. Only use it on elements that have a real semantic role, never on a <div> or <span> without one.
Never use it to describe a widget's purpose in place of its role, such as calling a button "Close dialog button". The label is for the purpose; the role description, when used at all, is for the kind of thing it is.
Properties
- Type
- Global
- Value
- string
- Default
- None
- Used with
- All elements (global attribute)
Syntax
<element aria-roledescription="text">
Values
- textA short, localized description of the role, such as "slide".
Example
Browser Support
The following information will show you the current browser support for the aria-roledescription ARIA attribute. Hover over a browser icon to see the version that first introduced support for this ARIA attribute.
Desktop





Tablets & Mobile





