- Home
- /
- Tutorials
- /
- HTML Tutorial
- /
- HTML <acronym> Tag
HTML Tags
HTML <acronym> Tag
The acronym tag marked an abbreviation that is pronounced as a word, like NASA or UNESCO. It was dropped in HTML5 because the difference from abbr confused everyone. Use abbr for every kind of abbreviation now.
Syntax
html
<acronym title="Full form">ACRONYM</acronym>| Attribute | What it did |
|---|---|
| title | The full form, shown as a tooltip on hover. |
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>Both lines look the same: hover over "HTML" and the full form appears as a tooltip. Browsers still display <acronym> so old pages work, but only <abbr> is valid HTML.
Browser Support
Chrome | Edge | Firefox | Safari | Opera |
|---|---|---|---|---|
| Displayed, obsolete | Displayed, obsolete | Displayed, obsolete | Displayed, obsolete | Displayed, obsolete |
Browsers still show the text and the tooltip for old pages. Do not use it in new code.
What to use instead
<abbr title="..."> works for acronyms (NASA), initialisms (HTML, BBC) and short forms (Dr., Mon.). The full details, including why you should also spell the term out in text, are in the abbr tag.
HTML <acronym> Tag exercises
Use abbr instead
The acronym element is obsolete. Write this paragraph and mark HTML the modern way, with its full form HyperText Markup Language: HTML is easy.
Result
