Skip to content
Related Articles

Related Articles

HTML | <abbr> title attribute

View Discussion
Improve Article
Save Article
  • Last Updated : 21 Jun, 2022
View Discussion
Improve Article
Save Article

The HTML <abbr> title attribute is used to specify the extra information about an element. When the mouse moves over the element then it shows the information. 

Syntax:

<abbr title = "text">

Attribute Value: This attribute contains single value text which is used as the tooltip text for an element. This title is associated with all HTML elements. 

Example: 

html




<!DOCTYPE html>
<html>
    <head>
        <title>HTML | <abbr> title attribute
</title>
        <style> e
            body {
                text-align:center;
            }
            h1 {
                color:green;
            }
        </style>
    </head>
    <body>
        <center>
        <h1>GeeksforGeeks</h1>
        <h2>HTML abbr title attribute</h2>
        <abbr title="GeeksforGeeks">GFG</abbr>
    </center>
    </body>
</html>                    

Output:

  

Supported Browsers: The browser supported by HTML abbr attribute are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Opera
  • Safari
My Personal Notes arrow_drop_up
Recommended Articles
Page :

Start Your Coding Journey Now!