ARIA Structure Roles
ARIA role: tooltip
Supplementary text associated with a control and shown on hover or focus. Static association only; real tooltip must appear on focus and hover, remain available as appropriate, dismiss on Escape and not contain interactive controls. Explicit roles do not implement visual presentation, interaction or focus management; verify allowed role/element combinations in ARIA in HTML. Accessibility exposure varies with browser, platform and assistive technology. Test relevant combinations; rendering is not proof of accessibility.
Formal Syntax & Structure
html syntaxhtml
role="tooltip"Parameters & Attributes
| Name | Type | Description |
|---|---|---|
| role | token | Explicit role token tooltip; use only where allowed. Omit when native semantics match. |
Working Example
Example Snippethtml
<button aria-describedby="tip">Export</button><div role="tooltip" id="tip">Downloads a CSV file.</div>