Step 24 of 32

Tooltips and content that appears on hover

By the end of this step: you will be able to check any tip or box on your site that appears when someone points at it, and know what to ask for if it falls short.

The short version

  • Some sites show a little box when you point at something. It might be a tip or a sub-menu.
  • That box must be easy to close, easy to point at, and stay put long enough to read.
  • It must work with a keyboard too, not only a mouse.
  • The simplest fix is often to show the words on the page all the time.

What we mean by hover content

Hover means resting your mouse pointer on something without clicking. Focus means the spot a keyboard has moved to, usually shown by an outline. Some pages show extra content when either happens. A tooltip is a small box of help text. A sub-menu is a list that drops down from a menu item.

WCAG 1.4.13 Content on Hover or Focus is Level AA.[1] W3C says custom tooltips, sub-menus and other popups that show on hover and focus are covered.[1]

Why it can go wrong

Think of a visitor who zooms in a lot. Their screen shows only a small part of the page. If a box pops up and covers the page, W3C says they won't be able to see the actual page content.[1] They may not know how to get rid of it.

The three rules

Three boxes. 1. Dismissible: you can close it with the Esc key. 2. Hoverable: you can move your mouse onto it and it stays put. 3. Persistent: it stays until you move away or close it.
The three rules in WCAG 1.4.13.

Rule 1: it can be dismissed. The visitor can close the box without moving the mouse or the keyboard focus.[1] W3C's example is pressing the Esc key.[1]

A blue button called Opening hours with a tip box below it reading Mon to Fri 9am to 5pm, closed on public holidays. The tip covers a link below it, Book a table. Text: the problem is that the tip hides the link, and the fix is to let the visitor press Esc to close it.
A tip that covers other content needs a way to close it.

Rule 2: it can be hovered. The visitor can move the pointer onto the new box and it doesn't vanish.[1] This helps people who zoom in. It also helps people with a big mouse pointer that hides the text.

Rule 3: it stays. The box stays until the visitor moves away, closes it, or the information is no longer true.[1] Some people need extra time to find it and read it.

Keyboard users need it too

If a mouse can bring up the box, a keyboard should too.[1] Someone who tabs to a button should see the same tip as someone who points at it. Keyboard access explains how tabbing works.

Two boxes. Mouse hover: point at the button and the tip appears. Keyboard focus: tab to the button and the same tip appears. Text below: both ways should show the same tip.
Hover and keyboard focus should give the same result.

What the rules don't cover

The small tip your browser makes from a title label is controlled by the browser, not by you.[1] So it is outside these rules. Pop-ups that grab attention and block the page are a different thing. They have their own page: pop-ups and cookie banners.

A simpler choice

Most small sites don't need hover boxes. If the help is important, put it on the page in plain text. Then there is nothing to close, nothing to find, and nothing that depends on a mouse.

Try it on your site

  1. Find every spot where a box shows up when you point at something. Check menus, icons and info buttons.
  2. Point at one. Does a box appear? Press Esc. Does it close while the mouse stays still?
  3. Point at it again, then slide the mouse onto the new box. Does it stay?
  4. Now use the Tab key to reach the same spot. Does the same box appear?
  5. If any answer is no, tell your web designer or website builder's help team. Say it fails "WCAG 1.4.13 Content on Hover or Focus".

Sources

  1. Understanding Success Criterion 1.4.13: Content on Hover or Focus, W3C Web Accessibility Initiative (accessed 2026-11-12)