Which tag is used to define the abbreviation of an element in HTML ?
In this article, we will discuss the tag that is used to define an abbreviation.
The <abbr> tag in HTML is used to define the abbreviation or the 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 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: In this example, we will <abbr> tag in HTML
HTML
<!DOCTYPE html> < html > < body > < h1 >w3wiki</ h1 > < h2 >This is < abbr > Tag</ h2 > < abbr title = "w3wiki" >GFG</ abbr > </ body > </ html > |
Output: