Website tooltips provide additional information about buttons, icons, form fields, and other elements on a page. However, tooltips that only appear when someone hovers over them with a mouse can create accessibility problems for keyboard, screen reader, and touchscreen users. In this guide, we'll explain how to make website tooltips accessible, including WCAG requirements, ARIA attributes, and ways to test them.
What makes a tooltip accessible?
When it comes to website accessibility, an accessible tooltip provides additional information that people can access and understand regardless of how they navigate a website. Tooltips usually appear when someone hovers over an element or moves keyboard focus to it.
A tooltip might explain what an unfamiliar icon does or provide additional context about a form field. It should offer a short, helpful description without interrupting the user's task. More specifically, accessible tooltips should:
- Support keyboard navigation: Users should be able to access tooltip information without a mouse.
- Work with screen readers: Assistive technologies should be able to identify the tooltip's description.
- Remain visible: Users should have enough time to read the information.
- Allow dismissal: Users should be able to close tooltips when they obstruct other content.
- Be easy to read: Text should have sufficient contrast and remain visible at different screen sizes.
Tooltips should also contain supplementary information rather than essential instructions. If someone needs information to complete a form or understand an important action, it shouldn't be available exclusively through a tooltip.
WCAG requirements for accessible tooltips
The Web Content Accessibility Guidelines (WCAG) include several requirements that apply to tooltip accessibility. The most relevant is WCAG 2.2 Success Criterion 1.4.13: Content on Hover or Focus. This Level AA requirement covers additional content that appears when users hover over or focus on an element.
For custom tooltips, it generally requires three things:
- Dismissible: Users must be able to close the tooltip without moving their mouse or keyboard focus. The Escape key is a common way to support this.
- Hoverable: Users must be able to move their mouse pointer onto the tooltip without causing it to disappear.
- Persistent: The tooltip must remain visible until the user moves away, dismisses it, or the information is no longer relevant.
Other relevant requirements include WCAG 2.1.1 Keyboard, which addresses keyboard access, and WCAG 4.1.2 Name, Role, Value, which helps ensure custom components communicate the necessary information to assistive technologies. Text contrast requirements also apply to tooltip content.
These guidelines don't mean every website needs tooltips. They explain how tooltips should behave when they are used.
How to make website tooltips accessible
Making tooltips accessible involves providing useful information, supporting different navigation methods, and ensuring the content is easy to read. The following five steps cover the main tooltip accessibility best practices.
1. Use tooltips for additional information
Tooltips work best when they provide short explanations that support information already available on the page. For example, an information icon beside a form field might display a tooltip explaining why certain details are requested. A settings icon could have a tooltip describing its purpose.
However, important instructions shouldn't be hidden exclusively inside tooltips. Required field information, error messages, and instructions needed to complete a task should be accessible without depending on hover interactions.
Keep tooltip descriptions concise and specific. Avoid long paragraphs that require users to spend significant time reading a small floating panel. If the information is essential or needs a detailed explanation, consider displaying it directly on the page instead.
2. Make tooltips work with a mouse and keyboard
A common tooltip accessibility issue is making information appear only when someone hovers over an element with a mouse. People who navigate websites using keyboards may never see this information.
To address this, custom tooltips should generally appear when users hover over the associated element or move keyboard focus to it. For example, if a tooltip explains what a button does, it should become visible when someone reaches that button using the Tab key.
The tooltip should also remain visible while the pointer is over the trigger or tooltip, or while the associated element retains keyboard focus, unless the user dismisses it. Avoid making tooltips disappear immediately when someone moves their mouse. This can make the content difficult to read, particularly for people using screen magnification.
For non-interactive text, don't add unnecessary keyboard stops just to display a tooltip. Consider making the supplementary information visible instead.
3. Let users dismiss tooltips
Accessible tooltips should give users control over when additional information disappears. A tooltip might cover another button or part of a form. Users should be able to dismiss it without having to move away from the element they're using.
Supporting the Escape key is a common approach. When someone presses Escape, the tooltip closes while keyboard focus remains on the original element. Tooltips should also remain visible when users move their mouse pointer from the triggering element onto the tooltip itself.
These behaviours help meet WCAG 1.4.13 and make tooltip interactions more predictable
4. Use ARIA attributes to support screen readers
ARIA attributes help screen readers understand the relationship between a tooltip and the element it describes.
Two attributes are particularly useful:
- role="tooltip": Identifies the element containing the tooltip information.
- aria-describedby: Connects the tooltip's description to the associated element.
For example, imagine a Save button with a tooltip explaining that changes won't be published immediately. The button uses aria-describedby to reference the tooltip's unique ID, while the tooltip uses role="tooltip" to identify its content. This relationship allows compatible screen readers to access the additional description when users reach the Save button.
ARIA attributes don't control when tooltips appear or disappear, so developers must also ensure they work correctly with keyboard focus, mouse hover, and dismissal. Avoid placing buttons or links inside conventional tooltips. If users need to interact with the additional content, use a popover or another suitable component instead.
Also, don't rely on the HTML title attribute as your only method of providing tooltip information. Browser-generated title tooltips aren't consistently accessible across keyboards, touchscreens, and assistive technologies.
5. Make tooltips readable on desktop and mobile
Tooltip accessibility also depends on how the information looks and behaves across different devices. Use readable text, sufficient colour contrast, and positioning that doesn't cover important page elements. Under WCAG 2.2, normal-sized tooltip text generally needs a contrast ratio of at least 4.5:1 against its background.
Tooltips should also remain readable when users zoom into a page. Check that text doesn't become clipped or extend outside the visible screen area.
Mobile devices require particular attention because touchscreens don't support conventional mouse hover. Instead of relying on hover, consider using a clearly labelled information button that reveals additional content when tapped. Depending on how it works, this may be better implemented as a disclosure or popover. For short, important instructions, displaying the information directly on the page may be the better option.
Whatever approach you choose, make sure mobile users can access the information, read it comfortably, and dismiss it without difficulty.
How to test tooltip accessibility
Automated and manual testing help confirm that tooltips work as expected across different devices and navigation methods. You can use the following checks to identify common accessibility problems:
- Keyboard navigation: Use the Tab key to reach the associated control. Check that the tooltip becomes available and can be dismissed with Escape.
- Screen reader support: Test accessibility with screen readers such as NVDA or VoiceOver to check whether the tooltip description is announced appropriately.
- Mouse interactions: Hover over the trigger and move the pointer onto the tooltip. Confirm that the information doesn't disappear unexpectedly.
- Mobile accessibility: Test the website on a touchscreen and check that users can access the information without relying on hover.
- Text and layout: Increase browser zoom and check that the tooltip remains readable, correctly positioned, and visible within the screen.
It's worth testing tooltips as part of complete website tasks. Check whether someone can fill out a form, understand additional instructions, and submit their information without encountering accessibility barriers.
Make tooltip accessibility part of your website checks
Accessible tooltips should be easy to find, read, and dismiss, regardless of how someone navigates your website. Following WCAG requirements and testing with different input methods can help identify problems before they affect users.
Tooltips are just one part of an accessible website. Other issues, such as missing form labels, poor colour contrast, and incorrect ARIA attributes, can also make pages difficult to use. Check your website for accessibility issues with Welcoming Web's free scanner.

Written by
Alisan Erdemli
CEO at Welcoming Web, and web accessibility technology expert
Connect on LinkedInReady to Make Your Website Accessible?
Join thousands of satisfied users who trust WelcomingWeb to deliver fully accessible, compliant, and inclusive digital experiences.



