The HTML <abbr> tag
The HTML <abbr> element marks up an abbreviation or acronym. Add the global title attribute to provide the full expansion, which browsers show as a tooltip.
Overview
The <abbr> element marks up an abbreviation or acronym — like HTML or WHO. Give it a title attribute containing the full expansion, and most browsers show that as a hover tooltip; some assistive technologies can announce it as well.
There is an important accessibility limitation, though: tooltips are not available to keyboard or touch users, who cannot hover. So the title alone is not a reliable way to convey the expansion.
The robust pattern is to spell out an abbreviation in full the first time it appears, with the <abbr> reinforcing it — for example "HyperText Markup Language (<abbr>HTML</abbr>)" — so every reader gets the meaning regardless of input device.
Syntax
<abbr title="Cascading Style Sheets">CSS</abbr>
Example
<p><abbr title="HyperText Markup Language">HTML</abbr> structures the web.</p>
Best practices
- Give every
<abbr>atitlewith the full expansion. - Spell the term out in full on first use, since tooltips are not available to keyboard or touch users.
- Use it consistently for the same abbreviation throughout the page.
- Do not rely on the
titletooltip as the only way the expansion is conveyed.
Frequently asked questions
What is the abbr element for?
title attribute.How do I show the full form of an abbreviation?
title attribute with the expansion; browsers show it as a tooltip on hover. Also spell it out in full on first use for non-hover users.Is the title tooltip accessible?
title alone — expand the term in the text on first use.Should I use abbr for acronyms too?
<acronym> into <abbr>, so use <abbr> for both abbreviations and acronyms.