THE GITHTML FIELD GUIDE
Do not hide essential instructions in title tooltips
Keep essential explanations visible rather than relying on the title attribute's tooltip. Touch, keyboard, and assistive-technology users may not receive that advisory text consistently. Use ordinary nearby text for conditions and instructions, and treat title as optional supplementary information rather than the sole accessible label or definition.
Understand the access barrier
A desktop author may discover a tooltip by hovering and assume everyone can do the same. On a phone there may be no equivalent reliable interaction, and a short-lived tooltip can be difficult to read even when it appears.
Use a deliberate document pattern
Move required qualifications into the sentence or an explicitly labeled disclosure. Keep labels concise but complete enough to identify the action. Do not use title to conceal units, prerequisites, or the meaning of an unfamiliar status.
- Inventory title text that contains prerequisites, units, or instructions.
- Move essential information into visible prose or an accessible disclosure.
- Verify that every control and link is understandable without its tooltip.
<p>Latency is measured in milliseconds and excludes requests that timed out.</p>Check the actual reading experience
Read the document without hovering anywhere. If the task becomes ambiguous, the hidden explanation belongs in the visible reading flow.
Expose the qualification that changes the claim
Suppose a results table shows a green Passed label whose title tooltip says that only staging was tested. A desktop author may regard the tooltip as a useful space-saving explanation, but a reader on touch hardware can interpret Passed as a production claim without ever encountering the restriction. Move the environment qualification into the visible status or an adjacent note, such as Passed in staging; production was not tested.
Use the same approach for units, abbreviations, and prerequisites. A number labeled Latency should expose milliseconds and the measurement definition somewhere readers can reliably find, not only when hovering the heading. A link called Download should identify the relevant artifact, while essential file-type or access conditions belong in visible supporting text. The title attribute can remain supplementary, but the core task should still be understandable when every title attribute is ignored.
If additional detail would overwhelm the reading flow, use a clearly named disclosure whose control is available to touch and keyboard users. Keep the essential warning outside the disclosure when hiding it would change the apparent meaning of the main claim. Do not replace a native tooltip with a custom hover-only panel and assume the problem is solved; that introduces its own persistence and dismissal requirements. Review the page on a device without hover and ask a reader to explain each status and instruction using only what they can deliberately access. Also inspect the computed names of links and controls so an incidental title does not mask a missing real label. The goal is dependable information placement, not simply removing one attribute.
Sources and further reading
AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.