106 of 133 menu

The abbr tag

The abbr tag indicates that the text enclosed in the tag data is an abbreviation (abbreviation is an abbreviation of some name, usually typed in capital letters, for example, USA).

In the attribute title of this tag, you should specify the abbreviation expansion, and when you hover over the text of the tag, a tooltip will appear (as it should be for the attribute title).

In addition, in this case title performs another function - the abbreviation will be indexed by search engines.

Some browsers may highlight the contents of this tag with a dotted underline.

Example

Let's take the abbreviation in the tag abbr, add the attribute title, which contains the abbreviation's explanation (move your mouse over the abbreviation in the example and hold it for a couple of seconds - you will see a pop-up tip):

The country <abbr title="United States of America">USA</abbr> is located in North America.

:

See also

  • tag ruby,
    which specifies the text with annotation
  • attribute title,
    which sets the tooltip
  • tag dfn,
    which defines the term
byenru