Loading...
HTML <abbr> Tag

HTML <abbr> Tag

In this tutorial, we will learn about abbreviation tag in HTML with the help of examples.


<abbr> Tag

Abbreviation tag <abbr> is used for defining abbreviation or an acronym, like etc. , pvt. , Mr. , Dr. , ATM , HTML , CSS .

The text inside the <abbr> tag represented with the dotted line under it.

Syntax

<abbr title = "acronym">......</abbr>

Note : We have to provide the acronym or full form of the text in place of acronym in title attribute.

Example

<!DOCTYPE html>
<html>
  <head>
    <title>Abbreviation Tag</title>
  </head>
  <body>
    <p><abbr title = "Hyper Text Markup Language">HTML</abbr> is a markup language.</p>
  </body>
</html>

Output

HTML is a markup language.

In the above example, when you hover over the text, you will see the text provided in the title attribute.


Global Attribute

Abbreviation Tag support all the global attributes of HTML.


Event Attribute

Abbreviation Tag support all the event attributes of HTML.


Next Tutorial

We hope that this tutorial helped you develop better understanding of the concept of Abbreviation tag in HTML.

Keep Learning : )

In the next tutorial, you'll learn about HTML address Tag.

- Related Topics