HTML <acronym>
Tag
Example
The marked acronyms are as follows:
Browser Support
All major browsers support the <acronym>
tag.
Note: Internet Explorer 5.5 and earlier versions do not support the <acronym>
tag.
Tag Definition and Usage
The <acronym>
tag defines an acronym.
If the acronym is a word, it can be pronounced, such as NATO, NASA, ASAP, GUI.
By marking the acronyms, you provide useful information for browsers, spell checkers, translation systems, and search engine indexers.
Tips and Notes
Tip: In some browsers, when you hover 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.
Differences Between HTML 4.01 and HTML5
HTML5 does not support the <acronym>
tag, while HTML 4.01 supports it.
Standard Attributes
In HTML 4.01, the <acronym>
tag supports the following standard attributes:
Attribute | Value | Description |
---|---|---|
class | classname | Specifies the class name for an element |
dir | rtl <br>ltr | Specifies the text direction of the element's content |
id | id | Specifies a unique id for an element |
lang | language_code | Specifies the language of the element's content |
style | style_definition | Specifies an inline style for an element |
title | text | Specifies extra information about an element |
xml:lang | language_code | Specifies the language of the element's content in an XHTML document |
For a complete description, visit Standard Attributes.
Event Attributes
In HTML 4.01, the <acronym>
tag supports the following event attributes:
Attribute | Value | Description |
---|---|---|
onclick | script | Script to be run on a mouse click |
ondblclick | script | Script to be run on a double-mouse click |
onmousedown | script | Script to be run when a mouse button is pressed |
onmousemove | script | Script to be run when the mouse pointer moves |
onmouseout | script | Script to be run when the mouse pointer moves out of an element |
onmouseover | script | Script to be run when the mouse pointer moves over an element |
onmouseup | script | Script to be run when a mouse button is released |
onkeydown | script | Script to be run when a key is pressed |
onkeypress | script | Script to be run when a key is pressed and then released |
onkeyup | script | Script to be run when a key is released |
For a complete description, visit Event Attributes.