English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
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.
The following are marked with initialisms:
<p>Male programmer looking for <acronym title="girlfriend">GF</acronym>/acronym>is difficult./p>Test and see ‹/›
IEFirefoxOperaChromeSafari
All major browsers support <acronym>.
Note:IE 5.5 or earlier versions of IE browsers do not support the <acronym> tag.
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.
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.
HTML5 Does not support <acronym> tag in HTML 4.01 Supports <acronym> tag.
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>.
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.
In HTML 4.01 The <acronym> tag supports the following standard attributes:
Attribute | Value | Description |
---|---|---|
class | classname | Class name of the element |
dir | rtl ltr | Text direction within the element |
id | id | Unique id for the element |
lang | language_code | Language code for the content within the element |
style | style_definition | Specifies the inline style of the element |
title | text | Specifies additional information about the element |
xml:lang | language_code | Specifies the language code for the content of an element in an XHTML document |
For a complete description, please visitStandard Attributes.
In HTML 4.01 In, the <acronym> tag supports the following event attributes:
Attribute | Value | Description |
---|---|---|
onclick | script | Execute script when the mouse is clicked |
ondblclick | script | Execute script when the mouse is double-clicked |
onmousedown | script | Execute script when the mouse button is pressed |
onmousemove | script | Execute script when the mouse pointer moves |
onmouseout | script | Execute script when the mouse pointer moves out of an element |
onmouseover | script | Execute script when the mouse pointer hovers over an element |
onmouseup | script | Execute script when the mouse button is released |
onkeydown | script | Execute script when the keyboard is pressed |
onkeypress | script | Execute script when the keyboard is pressed and then released |
onkeyup | script | Execute script when the keyboard is released |
For a complete description, please visitEvent Attributes.