ARIA tooltip Role
The tooltip role marks a small popup that shows a short description of an element when it receives keyboard focus or the mouse hovers over it.
Description
The tooltip role identifies a contextual popup that shows a description for an element, typically when it gets keyboard focus or the mouse pointer hovers over it. The element that triggers the tooltip should reference it with aria-describedby, so its text is read along with the trigger. Focus never moves into the tooltip.
Tooltips should appear on both focus and hover, stay visible while the pointer is over the tooltip itself, and close when the user presses Escape, as required by WCAG. They should only contain plain text: anything interactive, like a link, belongs in a non-modal dialog instead.
The title attribute is not a good substitute; it doesn't appear on keyboard focus or touch screens. The popover attribute and the CSS anchor positioning properties make custom tooltips much easier to build.
Properties
- Category
- Document Structure
- HTML equivalent
- None
- Accessible name from
- contents, author
- Required parent role
- None
- Required child roles
- None
ARIA Attributes
- Required
- None
- Supported
- None
- Prohibited
- None
- Global
- All global ARIA attributes can also be used, such as
aria-label,aria-labelledby,aria-describedby,aria-hidden.
Syntax
<element role="tooltip">
Example
Browser Support
The following information will show you the current browser support for the tooltip ARIA role. Hover over a browser icon to see the version that first introduced support for this ARIA role.
Desktop





Tablets & Mobile





