Skip to main content

BETANow in public beta.Public betaBeta

日本語Español

TIP-002 Published

Definition tooltip

A design that puts a dotted underline under hard-to-understand words in the text and shows a short explanation in a bubble when the pointer rests on them or they are pressed.

FigmaThis part is included in our free, editable Figma file: 235 website UI patterns across 32 parts, 2 designs each Open in Figma Community ↗ (opens in a new tab)

Wireframe (desktop) | Definition tooltip

Definition tooltip UI design (desktop wireframe)

Wireframe (mobile) | Definition tooltip

Definition tooltip UI design (mobile wireframe)

What changes on mobile

  1. Opens on press: Mobile has no pointer to hover with, so pressing a word opens the bubble and pressing elsewhere closes it.
  2. The bubble stays within the screen: Even when the word is at the edge of a line, the bubble is shifted inward so it never goes off screen.
  3. Slightly smaller body text: The text is a little smaller while the line height stays generous, so it remains easy to read when a bubble overlaps.

Before you choose this pattern | Definition tooltip

Good fit

  • Articles or service pages read by newcomers include a few technical terms
  • Explaining the terms in the text would feel roundabout to people who already know them
  • Each explanation fits in one or two sentences

Poor fit

  • The explanation is long and needs diagrams or steps (a glossary page with a link works better)
  • You want to show the name of an icon button (the icon label tooltip works better)
  • Most readers will not know the word (explaining it in the text is kinder)

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.

Related pages

Share this pattern

Send this page to your team or your design partner.

Was this pattern useful?

Written by

Yuta Okano

ENVY DESIGN Inc.

CEO / Director / Designer

14 years in the web industry. Has worked on more than 500 web projects, from corporate and recruiting sites to e-commerce. Focuses on information architecture, direction and design, from planning websites to improving them. In recent years he has focused on AIO (AI optimization) and GEO, helping sites get cited by generative AI search such as ChatGPT, Perplexity and Google AI Overviews.

Review and revision history

  1. Published AvatarYuta Okano Pattern published