<abbr> Tag in HTML

Quick facts

CategoryFlow content, phrasing content, palpable content
Content modelPhrasing content
Tag omissionNeither the start nor the end tag can be omitted
Permitted parentsAny element that accepts phrasing content
DOM interfaceHTMLElement

Syntax

<abbr title="HyperText Markup Language">HTML</abbr>

Live example

Edit the code below and watch the preview update instantly.

index.html
Preview

Attributes

AttributeDescription
titleThe full form of the abbreviation. If present, it must contain the expansion and nothing else.

Common examples

Expanding an abbreviation in the text

The clearest way: write it out in full the first time, then use the short form.

<p>The <abbr>WHO</abbr> (World Health Organization) published new guidance today.</p>

Using the title attribute

The title shows the full form as a tooltip when hovering with a mouse.

<p>Pages are written in <abbr title="HyperText Markup Language">HTML</abbr>.</p>

A glossary of abbreviations

Combine <abbr> with a description list for a list of terms.

<dl> <dt><abbr>CSS</abbr></dt> <dd>Cascading Style Sheets</dd> <dt><abbr>SEO</abbr></dt> <dd>Search Engine Optimization</dd> </dl>

A touch-friendly tooltip

Tooltips don’t appear on phones. A little CSS can show the title after the abbreviation when printing, or you can spell it out in the text.

<style> @media print { abbr[title]::after { content: " (" attr(title) ")"; } } </style>

<abbr> vs <dfn>

<abbr> marks a shortened form like “HTML”, “Dr.” or “Oct.” <dfn> marks the place where a term is defined — the sentence that explains what it means.

They can be combined: the first time you introduce an abbreviation and explain it, you can write <dfn><abbr title="…">API</abbr></dfn>. After that, plain <abbr> is enough.

<abbr><dfn>
MarksA shortened formThe defining instance of a term
UsedAny timeOnce, where it’s explained
Common attributetitletitle or id

Common mistakes to avoid

  • Relying only on the title tooltip. It doesn’t appear on phones or for keyboard users; spell out important abbreviations in the text.
  • Wrapping every abbreviation on the page. Explain each one once, usually the first time it appears.
  • Using <acronym>. It was removed from HTML; use <abbr> for both acronyms and abbreviations.
  • Abbreviations everyone knows. “OK” or “TV” don’t need explaining.

Accessibility & SEO tips

  • Writing the full name in the text also helps search engines match people searching for either form (“WHO” and “World Health Organization”).
  • Use plain language: abbreviations are a common barrier for people with reading or cognitive difficulties.
  • Screen readers may read abbreviations letter by letter or as a word; spelling them out once avoids confusion.
  • Keep a short glossary page for the abbreviations your site uses often, and link to it — it helps visitors and gives search engines a clear page for those terms.

Browser support

Supported in every browser, including Chrome, Edge, Firefox, Safari and their mobile versions — it has been part of HTML since the very first versions. The dotted underline on abbreviations with a title is the default in most browsers.

Related tags

Frequently asked questions

What happened to the <acronym> tag?
<acronym> is obsolete and was removed in HTML5. Use <abbr> for both abbreviations and acronyms.
Is the title tooltip on <abbr> accessible?
Not fully. Touch screens can't hover, and many screen readers don't read the title by default. Spell out the full term in the text on first use, and keep the title as an extra.
Why is my <abbr> text underlined with dots?
Many browsers add a dotted underline to <abbr> elements that have a title. Change it in CSS with text-decoration, or remove it with text-decoration: none.
Should I use <abbr> for acronyms?
Yes. HTML no longer has a separate tag for acronyms; <abbr> covers acronyms (NASA), initialisms (BBC) and shortened words (Dr.).
How do I remove the dotted underline from <abbr>?
Use CSS: abbr[title] { text-decoration: none; }. Consider keeping some hint, such as a different color, so people know there's more information.
Does <abbr> help SEO?
Not directly. What helps is writing the full name in the visible text, so the page matches searches for both the short and the long form.
What is the difference between an abbreviation and an acronym?
An acronym is said as a word (NASA), while other abbreviations are spelled out letter by letter (HTML) or shorten a word (Dr.). In HTML, <abbr> covers all of them.
Can I use <abbr> without a title attribute?
Yes. If you spell out the full form in the text, the title isn't needed — <abbr> on its own still marks the text as an abbreviation.
Can <abbr> be inside a link?
Yes. <abbr> is an inline element, so it works inside links, headings, buttons and table cells.