English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Reference Manual

Complete list of HTML tags

HTML: <acronym> Tag

The <acronym> tag simply represents an abbreviation, and an abbreviation is a subset of an acronym, so you can always use <abbr> instead of <acronym> in any case. And in HTML5In HTML, the <acronym> tag has been replaced by <abbr>, HTML5In subsequent versions, the <acronym> tag will be abandoned.

Online example

The following are marked with initialisms:

<p>Male programmer looking for <acronym title="girlfriend">GF</acronym>/acronym>is difficult./p>
Test and see ‹/›

Browser compatibility

IEFirefoxOperaChromeSafari

All major browsers support <acronym>.

Note:IE 5.5 or earlier versions of IE browsers do not support the <acronym> tag.

Tag definition and usage instructions

HTML5 Does not support <acronym> tag. Please use <abbr> tag to replace it.

The <acronym> tag defines an acronym.

If an acronym is a single word, it can be pronounced, for example NATO, NASA, ASAP, GUI.

By marking acronyms, you can provide useful information to browsers, spell checkers, translation systems, and search engine filters.

Tips and Notes

Tip:In some browsers, when you move the mouse over an acronym with the <acronym> tag, the title attribute of the <acronym> tag can be used to display the full version of the acronym.

HTML 4.01 with HTML5differences

HTML5 Does not support <acronym> tag in HTML 4.01 Supports <acronym> tag.

What's the difference between <abbr> and <acronym>?

Difference between <acronym> and <abbr> in HTML, <acronym> represents an acronym, while <abbr> represents an abbreviation, so the semantic scope of <abbr> is broader.
When used, the full word is written in the title attribute, for example: <abbr title="PageRank">PR</abbr>.

Advantages of using ABBR and ACRONYM tags

1Increases readability. I often encounter situations like this, for example, when browsing forums and seeing 'NC'. If it's the first time I see it, I might be confused and wonder what it means. In the end, I have to search on Baidu, oh, it's 'brain-dead'. If ABBR and ACRONYM tags are used, just hover the mouse over the abbreviation and the full meaning will be displayed.
2Friendly to search engines. The use of ABBR and ACRONYM tags seems to be an important lesson in SEO. Search engines will automatically associate 'PR' with 'PageRank', and searching for 'PR' or 'PageRank' will lead to this page being indexed.

Standard Attributes

In HTML 4.01 The <acronym> tag supports the following standard attributes:

AttributeValueDescription
classclassnameClass name of the element
dirrtl
ltr
Text direction within the element
ididUnique id for the element
langlanguage_codeLanguage code for the content within the element
stylestyle_definitionSpecifies the inline style of the element
titletextSpecifies additional information about the element
xml:langlanguage_codeSpecifies the language code for the content of an element in an XHTML document

For a complete description, please visitStandard Attributes.

Event Attributes

In HTML 4.01 In, the <acronym> tag supports the following event attributes:

AttributeValueDescription
onclickscriptExecute script when the mouse is clicked
ondblclickscriptExecute script when the mouse is double-clicked
onmousedownscriptExecute script when the mouse button is pressed
onmousemovescriptExecute script when the mouse pointer moves
onmouseoutscriptExecute script when the mouse pointer moves out of an element
onmouseoverscriptExecute script when the mouse pointer hovers over an element
onmouseupscriptExecute script when the mouse button is released
onkeydownscriptExecute script when the keyboard is pressed
onkeypressscriptExecute script when the keyboard is pressed and then released
onkeyupscriptExecute script when the keyboard is released

For a complete description, please visitEvent Attributes.