Tutorialspoint.dev

HTML | abbr Tag

The <abbr> tag in HTML is used to define the abbreviation or short form. The <abbr> and <acronym> both tag are used as shortened versions and used to represented as 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>

Example:

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

Output:
abbr tag

Supported Browser: The browser supported by <abbr> tag are listed below:

  • Google Chrome
  • Internet Explorer
  • Firefox
  • Safari
  • Opera


This article is attributed to GeeksforGeeks.org

leave a comment

code

0 Comments

load comments

Subscribe to Our Newsletter