HTML <abbr>
Tag
Jul. 20, 2024
HTML <abbr>
Tag1
The <abbr>
tag defines an abbreviation or an acronym, like “HTML”, “CSS”, “Mr.”, “Dr.”, “ASAP”, “ATM”.
Tip: Use the global title
attribute to show the description for the abbreviation/acronym when you mouse over the element.2
Examples:
<abbr title="Hypertext Mark-up Language">HTML</abbr>
: HTML<abbr title="Cascading Style Sheets">CSS</abbr>
: CSS<abbr title="Mister">Mr.</abbr>
: Mr.<abbr title="Doctor">Dr.</abbr>
: Dr.<abbr title="As Soon As Possible">ASAP</abbr>
: ASAP<abbr title="Automatic Teller Machine">ATM</abbr>
: ATM
References
-
The
title
attribute specifies extra information about an element. The title attribute can be used on any HTML element (it will validate on any HTML element. However, it is not necessarily useful). HTML Global title Attribute. ˄