HTML Acronym Tag
The <acronym> tag is not supported in HTML5.
Instead of using <acronym>, we now use the <abbr> tag for both acronyms and abbreviations.
The <acronym> tag helps you show the full form of a short word or abbreviation (acronyms) in a webpage. An acronym is a word formed by the first letters of a phrase. For example,, NASA stands for "National Aeronautics and Space Administration". The purpose of this tag was to help users understand the full form of a shortened word by hovering over it with the mouse.
Here’s why people used it:
- To help readers understand the meaning of complex acronyms.
- To make websites more user-friendly by offering extra help on hover.
Syntax -
<acronym title="full_text">
short_name
</acronym>
Example -
Scenario - A simple example just to understand how it worked
<!DOCTYPE html>
<html>
<head>
<title> acronym example</title>
</head>
<body>
<p><acronym title="TutorialsCampus">TC</acronym>
is a best online tutorials library.</p>
</body>
</html>
Output -
TC is a best online tutorials library.
Explaining Example -
When this code is run in a browser that supports <acronym>, the word TC will show a tooltip that says "TutorialsCampus" when you hover your mouse over it.