- Home
- /
- Tutorials
- /
- HTML Tutorial
- /
- HTML <acronym> Tag
HTML Tags
HTML <acronym> Tag
The
<acronym>tag in HTML was used to define an acronym - a word formed from the initial letters of other words, such as NASA or HTML.
When a user hovered over the acronym, the browser could display its full meaning using thetitleattribute.
This tag is deprecated in HTML5 and replaced by the<abbr>tag.
Syntax
html
<acronym title="Full form">ACRONYM</acronym>Attributes
| Attribute | Description |
|---|---|
| title | Specifies the full form or description of the acronym. |
Example
html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Acronym Tag Example</title>
</head>
<body>
<h2>HTML <acronym> Tag Example</h2>
<p>
The <acronym title="HyperText Markup Language">HTML</acronym>
defines the structure of web pages.
</p>
<p><strong>Modern Alternative:</strong> Use <abbr> tag instead:</p>
<p>
The <abbr title="HyperText Markup Language">HTML</abbr>
defines the structure of web pages.
</p>
</body>
</html>Browser Support
Chrome | Edge | Firefox | Safari | Opera | IE9+ |
|---|---|---|---|---|---|
| Partially | Partially | Partially | Partially | Partially | Yes |
It has limited browser support and tag has been depricated.
Notes
- The
<acronym>tag is deprecated in HTML5. - Use the
<abbr>tag instead, which provides the same functionality and is supported by modern browsers. - The
titleattribute is what displays the tooltip on hover.
Conclusion
The <acronym> tag was once used to define acronyms in HTML documents, but it is now obsolete.
For modern, accessible, and valid HTML, use the <abbr> tag instead.
