HTML abbr Tag
The <abbr> tag(Abbreviation) in HTML is used to define the abbreviation or short form of an element. The <abbr> and <acronym> tags are used as shortened versions and used to represent a series of letters. The abbreviation is used to provide useful information to the browsers, translation systems, and search-engines.
Syntax:
<abbr title=""> Short form </abbr>
Attribute: This tag accepts an optional attribute as mentioned above and described below:
- title: It is used to specify extra information about the element. When the mouse moves over the element then it shows the information.
Example:
html
<!DOCTYPE html> < html > < body > < h1 >GeeksforGeeks</ h1 > < h2 >This is < abbr > Tag</ h2 > < abbr title = "GeeksforGeeks" >GFG</ abbr > </ body > </ html > |
Output:
Supported Browser:
- Google Chrome 2 and above
- Edge 12 and above
- Internet Explorer 7 and above
- Firefox 1 and above
- Opera
- Safari
Please Login to comment...