HTML <abbr>

BrandonDusch's avatar
Published Mar 9, 2022Updated Jul 1, 2022
Contribute to Docs

The <abbr> element indicates an acronym or abbreviation of a longer word or phrase. It can use the title attribute which is optional but recommended.

  • Front-end engineers work closely with designers to make websites beautiful, functional, and fast.
    • Includes 34 Courses
    • With Professional Certification
    • Beginner Friendly.
      115 hours
  • Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.
    • Beginner Friendly.
      7 hours

Syntax

Whenever the <abbr> tag is used, it should use the title attribute to convey a semantic meaning of the abbreviation or acronym.

<abbr title="">
<!-- The acronym or abbreviation here -->
</abbr>

While using the title attribute can be semantically helpful, it is still a good practice in accessibility to spell out the word/phrase in the text the first time before applying the <abbr> tag. Some browsers also apply default styling to the <abbr> tag like dotted underlines or translating the text into small letters.

Example

<p>
Tomorrow I'll be heading to the Kennedy Space Center to learn about the
National Aeronautics and Space Administration (NASA). Touring through the
rockets used in
<abbr title="National Aeronautics and Space Administration">NASA</abbr>
will be such fun!
</p>

Abbr example

When the mouse moves over the element, the information written inside the title attribute on a tooltip is displayed.

All contributors

Contribute to Docs

Learn HTML on Codecademy

  • Front-end engineers work closely with designers to make websites beautiful, functional, and fast.
    • Includes 34 Courses
    • With Professional Certification
    • Beginner Friendly.
      115 hours
  • Start at the beginning by learning HTML basics — an important foundation for building and editing web pages.
    • Beginner Friendly.
      7 hours