HTML <abbr> Tag

Beginner
6 min read
Updated: Oct 2026
4 examples
Live preview

Definition and Usage

The <abbr> element marks an abbreviation or acronym. On first use, spell out the full term in plain text when you can. That helps every reader — not only people who can hover for a tooltip.

The global title attribute may hold the full expansion when an inline explanation is not practical. If present, title must contain that description and nothing else. Pair with <dfn> when you formally define a term.

Baseline · Widely available.

Not deprecated and not experimental. Stable across modern browsers since about July 2015.

Obsolete: <acronym>.

Do not use <acronym> in new pages. Use <abbr> for both abbreviations and acronyms.

HTML Syntax

syntax.html
<abbr title=" expansion">ABBR</abbr>

Both start and end tags are required. Content is phrasing text (the short form readers see). title is optional but, when used, must be the full human-readable expansion.

Attributes

<abbr> has no element-specific attributes. It uses global attributes; title has special meaning here.

AttributeDescriptionTry it
titleFull expansion of the abbreviation (tooltip / advisory text). Must be the expansion onlyTry it
(none / omit title)Still valid. Prefer expanding the term in nearby sentence text insteadTry it
langLanguage of the abbreviation text when it differs from surrounding contentTry it

Global Attributes

The <abbr> tag also supports the Global Attributes in HTML.

Live Preview

Pick an abbreviation and a title expansion, then hover the marked term to see the tooltip.

A real <abbr>. Apply a term, then hover it to read title.

Abbreviation

Learn HTML to structure web pages.

title="HyperText Markup Language"

HTML Examples

Short, copy-ready snippets. Use Try It Yourself for a live editor.

Example 1 — Expansion with title

Provide the full meaning in title when you cannot expand the term in the sentence.

HTML
<p>
  Ashok’s joke made me
  <abbr title="Laugh Out Loud">LOL</abbr>
  big time.
</p>
Try It Yourself

How It Works

  1. Wrap the short form in <abbr>…</abbr>.
  2. Set title to the full expansion only (e.g. “Laugh Out Loud”).
  3. Hover or long-press (where supported) to see the advisory tooltip.
  4. Keep instances separate — this title does not auto-apply to other <abbr> tags.

Example 2 — Expand in the Sentence (Preferred)

Spell out the term on first use, then mark the abbreviation. Best for accessibility.

HTML
<p>
  JavaScript Object Notation (<abbr>JSON</abbr>)
  is a lightweight data-interchange format.
</p>
Try It Yourself

How It Works

  1. Write the full name first in normal text.
  2. Put the short form in parentheses (common writing pattern).
  3. Wrap only the short form with <abbr>.
  4. Skip title when the expansion is already visible — avoids a mismatched spoken tooltip.

Example 3 — Define a Term with dfn + abbr

Use <dfn> for the defining instance and <abbr> for the short form.

HTML
<p>
  <dfn id="html">
    <abbr title="HyperText Markup Language">HTML</abbr>
  </dfn>
  is a markup language used to structure web pages.
</p>
Try It Yourself

How It Works

  1. Wrap the defining mention in <dfn>.
  2. Nest <abbr> for the abbreviated label.
  3. Optional id on dfn lets other text link to the definition.
  4. Use title when the expansion is not already written beside the term.

Example 4 — Semantic Mark Without Expansion

Mark an abbreviation for meaning or styling even when everyone already knows it.

HTML
<p>Using <abbr>HTML</abbr> is fun and easy!</p>
Try It Yourself

How It Works

  1. Use bare <abbr> when you only need the semantic mark.
  2. No title means no tooltip expansion.
  3. Style with CSS if you want a dotted underline or small caps consistently.
  4. Do not over-mark every known short form on the page.

Edge Cases & Pitfalls

Most issues come from relying on tooltips alone or mixing obsolete tags.

a11y

Do not rely on hover-only expansions

Touch and keyboard users may miss tooltips. Expand important terms in the sentence on first use (MDN guidance).

title

title must be the expansion only

Do not put tips, jokes, or extra sentences in title on <abbr> — only the full description.

scope

Each abbr stands alone

A title on one instance does not apply to other identical abbreviations later on the page.

obsolete

Skip <acronym>

<acronym> is obsolete. Always prefer <abbr>.

grammar

Match grammatical number

In languages where number affects grammar, keep the same number in the short form and in title.

Browser Support

The <abbr> element is core HTML in every browser. It is not a Node.js, Deno, or Bun API.

✓ Baseline · Widely available

<abbr>

Widely available since about July 2015. Default visual styling differs by browser (dotted underline, small caps, or none).

98% Global support (approx.)
Google Chrome All
Full support
Mozilla Firefox All
Full support
Apple Safari All
Full support
Microsoft Edge All
Full support
Opera All
Full support
Samsung Internet All
Full support
Internet Explorer All
Supported
<abbr> Widely supported

Bottom line: Safe to use everywhere. Style abbr yourself if you need a consistent dotted underline across browsers.

Key Takeaways

  • Role: <abbr> marks abbreviations and acronyms for meaning and optional expansion.
  • Accessibility: expand the term in visible text on first use when you can.
  • title: optional; when used, store only the full expansion.
  • Obsolete: replace <acronym> with <abbr>.

One line: mark short forms with <abbr>, and explain them in visible text whenever possible.

Default CSS Settings

Browsers treat <abbr> as inline. Visual defaults differ; a common pattern is a dotted underline:

default.css
abbr {
  display: inline;
  /* Many browsers also use a dotted underline, e.g.: */
  text-decoration: underline dotted;
}

/* Optional author styles for consistency */
abbr[title] {
  cursor: help;
}

Some engines also use small caps. Set text-decoration and font-variant yourself for a consistent look.

Frequently Asked Questions

The abbr element marks an abbreviation or acronym in text. You can expand it in nearby plain text, and/or use the title attribute for a full human-readable description.
No. The HTML spec does not require title. Prefer spelling out the full term in the sentence on first use. Use title only when an inline expansion is not practical, and then title must contain that full expansion and nothing else.
Use abbr for both abbreviations and acronyms. The acronym element is obsolete in HTML. Keep acronym only for recognizing legacy markup.
No. Some add a dotted underline, some use small caps, and some look like plain text. Use CSS (for example text-decoration) if you need a consistent look.
No. Each abbr is independent. Providing title on one instance does not attach that expansion to other abbr elements with the same text.
No. Mark abbreviations when the expansion helps readers or you need a semantic hook for styling or scripting. Everyday terms everyone knows often need no markup.

Next: acronym

See why acronym is obsolete and how abbr replaces it.

acronym tutorial →

About the author

Mari Selvan M P
Mari Selvan M P 🔗

Developer, cloud engineer, and technical writer

  • Experience 12 years building web and cloud systems
  • Focus Full Stack Development, AWS, and Developer Education

I write practical tutorials so students and working developers can learn by doing—from databases and APIs to deployment on AWS.

10 people found this page helpful