ARIA tooltips must have an accessible name

Every element with role="tooltip" needs text that assistive technology can read, so the hint it gives reaches screen reader users, not only people who see it on hover.

Rule IDaria-tooltip-name
ImpactSerious
Success criterion 4.1.2 Name, Role, Value · A
StandardsWCAG 2.0 · WCAG 2.1 · WCAG 2.2 · Section 508 · EN 301 549
Readabler fix Fixed with a text: from the page or written by AI

Example

Before
<label for="vat">VAT number</label>
<input id="vat" type="text" aria-describedby="vat-tip">
<div role="tooltip" id="vat-tip"><img src="vat-format.svg"></div>

A screen reader says “VAT number, edit text” and gives no hint about the expected format.

After
<label for="vat">VAT number</label>
<input id="vat" type="text" aria-describedby="vat-tip">
<div role="tooltip" id="vat-tip"><img src="vat-format.svg" alt="Two letters, then 8 to 12 digits"></div>

A screen reader says “VAT number, edit text, Two letters, then 8 to 12 digits”.

Why it matters

Tooltips usually explain something: the format of a field, what an icon means, why a button is disabled. Screen readers read a tooltip through the element that references it, typically with aria-describedby. If the tooltip has no readable text, for example because it holds only an image without alt text or is filled with CSS, there is nothing to pass on.

Blind users then miss the hint entirely, and may fail a form that sighted users complete easily. Screen magnifier users who rely on their screen reader's speech lose it too. The page looks correct, so the gap only shows up when someone listens to it. This fails WCAG 4.1.2, because the tooltip is a component without a name.

How to fix it

Put real text in the tooltip. Plain text is the most reliable choice:

<div role="tooltip" id="vat-tip">Two letters, then 8 to 12 digits</div>

Image or icon inside. Give the image an alt text that carries the hint, as in the example above.

Text generated by CSS or JavaScript. Make sure the text ends up in the DOM, not only in a ::before rule or a data attribute. If it must stay elsewhere, use aria-label on the tooltip.

Connect it to its trigger. A named tooltip still needs a link to the control it describes:

<button aria-describedby="save-tip">Save</button>
<div role="tooltip" id="save-tip">Saves a draft without publishing</div>

Make it reachable without a mouse. Show the tooltip on keyboard focus as well as hover, let users dismiss it with Escape, and keep it open while the pointer is over it.

Do not put links or buttons inside a tooltip. If you need interactive content, use a dialog or a disclosure instead.

Checklist

  1. Give every tooltip readable text or an image with alt text.
  2. Link the tooltip to its trigger with aria-describedby.
  3. Show tooltips on focus as well as hover.
  4. Keep interactive content out of tooltips.

How the check works

The check looks at every element with role="tooltip". It passes when the tooltip has visible text (including image alt text), a non-empty aria-label, an aria-labelledby that points to text, or a non-empty title. Otherwise it fails. It does not test whether the tooltip is connected to its trigger or appears on keyboard focus: check that by hand.

Resources

Updated October 27, 2026