This element allows authors to indicate a sequence of characters that defines an abbreviation for a word.
The <abbr> tag marks abbreviation or acronym, like "UN" or "USA".
This tag is commonly confused with <acronym>
.
While Web developers appear to use an <acronym>
tag more often than an <abbr>
tag,
the former is deprecated under HTML5! The confusion continues.
According to the HTML5 specification, the title attribute should be set to the expansion of the abbreviation.
<abbr class="class name(s)" dir="ltr | rtl" id="unique alphanumeric identifier" lang="language code" style="style information" title="advisory text"> </abbr>
<abbr> |
Yes | Yes | Yes | Yes | Yes |
None.
The <abbr> tag supports the Global Attributes in HTML.
The <abbr> tag supports the Event Attributes in HTML.
None.
<!DOCTYPE html>
<html>
<body>
<p>The <abbr title="UN">UN</abbr> stands for United Nations.</p>
</body>
</html>