Favorites

ARIA tooltip Role

tooltip
ARIA Document Structure RoleThis ARIA role is supported by all modern browsers.
Updated 28th November 2026

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.

☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee

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

<button type="button" aria-describedby="tt"
onfocus="tt.hidden=false" onblur="tt.hidden=true"
onmouseenter="tt.hidden=false" onmouseleave="tt.hidden=true">Save</button>
<div role="tooltip" id="tt" hidden style="display:inline-block;background:#222;color:#fff;padding:2px 6px;border-radius:4px">Saves your changes</div>

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.

This ARIA role is supported by all modern browsers.

Desktop

Chrome
Edge
Firefox
Opera
Safari

Tablets & Mobile

Chrome Android
Firefox Android
Opera Android
Safari iOS
Samsung Internet
Android WebView
-
Supported Unknown Not supported
☕
Enjoying this site?

Help keep it running with a small coffee donation. Every bit of support is appreciated!

Buy us a coffee