Why this wireframe works | Definition tooltip
Explained words get a dotted underline
If readers cannot tell which words have an explanation, they cannot check them. Only words with an explanation get a dotted underline and bold type, so they can be told apart from links with a solid line.
It opens on hover and on press
If it only shows on hover, mobile and keyboard users cannot see it. Each word is built as a button that opens on hover, on keyboard selection and on press.
The bubble repeats the word as its heading
When a bubble sits over the text, it can be unclear which word it explains. The first line of the bubble shows the word in bold, with the explanation below.
At the edge of the screen, the bubble shifts inward
A bubble for a word at the end of a line would go off screen. If it would overflow, the bubble moves inward and only the arrow stays aligned with the word.
Common mistakes when building it
The explanation is too long
Several lines in a bubble hide the text and make it hard to read. Keep it to one or two sentences and move longer explanations to a glossary page.
The dotted underline looks the same as a link
If a word that stays on the page looks the same as a link that leads elsewhere, people get confused. Use a different line style or color.
Marking the same word again and again
A dotted line every time the word appears makes the text hard to read. Mark it only where it first appears.
Putting links inside the bubble
A bubble that opens on hover tends to disappear when the pointer moves, so links inside are hard to press. If you need links, make it open on press.
Frequently asked questions
Should terms be explained with a tooltip or on a glossary page?
A tooltip suits explanations that fit in one or two sentences, and a glossary page suits those that need diagrams or steps. If you use both, keep the bubble short and let people read more in the glossary.
How do screen readers announce the explanation?
If the word’s button points to the bubble with aria-describedby, the explanation is read after the word. If you only want it announced on press, you can put it in a role="status" area, as the help icon toggletip does.
Which words should get a dotted underline?
Limit it to words many readers may not know and that are needed to understand the text. Three or more in one paragraph make it hard to read, so if there are many, explain them in the text.











