Skip to content

15. abbr Element

The <abbr> element represents an abbreviation or acronym. It helps users understand abbreviations by providing a full expansion via the title attribute. The abbr element improves accessibility and user experience, especially for technical terms and acronyms.

<p>The <abbr title="World Wide Web">WWW</abbr> is part of the internet.</p>

Always include the full expansion:

<p>
<abbr title="HyperText Markup Language">HTML</abbr>
is a markup language.
</p>
<p>
<abbr title="Cascading Style Sheets">CSS</abbr>
styles HTML documents.
</p>
<p>
Use <abbr title="Application Programming Interface">API</abbr>
for data access.
</p>
<p>
<abbr title="HyperText Markup Language">HTML</abbr> and
<abbr title="Cascading Style Sheets">CSS</abbr>
work together.
</p>

Browsers typically:

  • Underline abbreviations (dotted underline)
  • Show title on hover
  • Help screen readers announce expansions

Provide full expansion:

<!-- Good: With title -->
<p><abbr title="HyperText Markup Language">HTML</abbr></p>
<!-- Avoid: Without title -->
<p><abbr>HTML</abbr></p>

Mark first occurrence, not every instance:

<!-- Good: First occurrence -->
<p>Learn <abbr title="HyperText Markup Language">HTML</abbr>.</p>
<p>HTML is essential for web development.</p>
<!-- Avoid: Every occurrence -->
<p>Learn <abbr title="HyperText Markup Language">HTML</abbr>.</p>
<p><abbr title="HyperText Markup Language">HTML</abbr> is essential.</p>