HTML abbr Tag

Table of Contents

HTML abbr Tag

What is abbr tag in HTML?

This tag is used to represent any acronym or abbreviation for a long word or phrase. The content written between <abbr> tags renders with a dotted underline in some browser.

Syntax

<abbr title="Hyper Text Transfer protocol">HTTP</abbr>  

Example

<!DOCTYPE html>  
<html>  
  <head>  
    <title>Your title</title>  
  </head>  
 <body>  
    <p><b>Hover mouse over the content and see the abbreviation</b></p>  
       <abbr title="Hyper Text Transfer protocol">HTTP</abbr>  
    </body>  
</html>    
Tags:

Leave a Reply