<abbr>

The <abbr> tag is used to represent an abbreviated version of a longer word or phrase.

abbr Tag

The <abbr> element is used to indicate an abbreviation or acronym. When using it, ensure that the full term appears in plain text initially, along with the <abbr> tag to provide context for users.

Syntax

index.html
<abbr title="Full Form">Abbreviation</abbr>

abbr Demo

An abbreviation is presented as follows:

The abbr element

The WHO was founded in 1948.

index.html
<h1>The abbr element</h1>
<p>The <abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>

Definition and Usage

The <abbr> tag is used to define abbreviations or <acronym>, such as "HTML," "CSS," "Mr.," "Dr.," "ASAP," or "ATM."

Use the global title attribute to display a description of the abbreviation when hovering over the element.

Example

The <abbr> tag can also be used with <dfn> to define an abbreviation.

The abbr element + the dfn element

CSS is a language that describes the style of an HTML document.

index.html
<h1>The abbr element + the dfn element</h1>
<p><dfn><abbr title="Cascading Style Sheets">CSS</abbr></dfn> is a language that describes the style of an HTML document.</p>
See also: <acronym>

Other elements related to text-level semantics:

<a> <em> <strong> <small> <cite> <q> <dfn> <time> <code> <var> <samp> <kbd> <sub> <sup> <b> <i> <mark> <ruby> <rp> <rt> <bdo> <span> <br> <wbr>.

Conclusion

The <abbr> element is a valuable HTML tag for representing abbreviations and acronyms, improving accessibility by displaying the full form when hovered over. Using the title attribute helps ensure users understand the abbreviation's meaning. Combining it with elements like <dfn> further enhances clarity.