HTML abbr Tag

html

HTML abbr Tag

Definition and Usage

The <abbr> tag defines an abbreviation or an acronym, like “HTML”, “Mr.”, “Dec.”, “ASAP”, “ATM”.

Tip: An abbreviation or an acronym are both shortened versions of something else. Both are often represented as a series of letters.

Tips and Notes

Tip: Use the global title attribute to show the description of the abbreviation/acronym when you mouse over the <abbr> element.


Global Attributes

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


Default CSS Settings

Most browsers will display the <abbr> element with the following default values:

Example

abbr {
  display: inline;
}

Share this post

Leave a Reply

Your email address will not be published. Required fields are marked *