HTML tag (Not supported in HTML5)

HTML <acronym> tag is used with title attribute to contain a full explanation of an acronym content. When you hover the mouse on content, then it will show the explanation of word.

Note: The <acronym> tag has been depreciated in HTML5 and we can use <abbr> tag instead of <acronym>.

Syntax

<acronym title="Indian Space Research Organisation">ISRO</acronym>  

Following are some specifications about the HTML <acronym> tag

DisplayInline
Start tag/End tagBoth Start tag and End tag
UsageSemantic/Textual

Example

 

<!DOCTYPE html>  

 <html>  

 <head>  

    <title>Acronym tag</title>  

 </head>  

  <body>  

   <h2>Acronym tag Example</h2>  

   <acronym title="Indian Space Research Organisation">ISRO</acronym>  

  </body>  

</html>

Difference between <acronym> and <abbr> tag

Although <acronym> tag is not supported by HTML5 but instead of that we can use <abbr> tag and we will get the same result using both tag.

Example

<!DOCTYPE html>  

 <html>  

  <head>  

   </head>  

  <body>  

   <h2>Acronym and Abbreviation Example</h2>  

   <acronym title="Indian Space Research Organisation">ISRO</acronym>  

   <abbr title="National Aeronautics and Space Administration">NASA</abbr>  

  </body>  

</htm

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *