Open In App

Which tag is used to define the abbreviation of an element in HTML ?

Improve
Improve
Like Article
Like
Save
Share
Report

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>GeeksforGeeks</h1>
    <h2>This is <abbr> Tag</h2>
    <abbr title="GeeksforGeeks">GFG</abbr>
</body>
</html>


Output:


Last Updated : 09 Jun, 2023
Like Article
Save Article
Previous
Next
Share your thoughts in the comments
Similar Reads