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
Display | Inline |
Start tag/End tag | Both Start tag and End tag |
Usage | Semantic/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
Leave a Reply