An acronym is marked up as follows:
![]()
The <acronym> tag is supported in all major browsers.
Note: The <acronym> tag is not supported in IE 5.5 or earlier versions.
The <acronym> tag is not supported in HTML5. Use the <abbr> tag instead.
The <acronym> tag defines an acronym.
An acronym can be spoken as if it were a word, example NATO, NASA, ASAP, GUI.
By marking up acronyms you can give useful information to browsers, spell checkers, translation systems and search-engine indexers.
Tip: The title attribute can be used to show the full version of the
acronym when you mouse over it.
The <acronym> tag is not supported in HTML5, but is supported in HTML 4.01.
The <acronym> tag supports the following standard attributes in HTML 4.01:
| Attribute | Value | Description |
|---|---|---|
| class | classname | Specifies a classname for an element |
| dir | rtl ltr |
Specifies the text direction for the content in an element |
| id | id | Specifies a unique id for an element |
| lang | language_code | Specifies a language code for the content in an element |
| style | style_definition | Specifies an inline style for an element |
| title | text | Specifies extra information about an element |
| xml:lang | language_code | Specifies a language code for the content in an element, in XHTML documents |
More information about Standard Attributes.
The <acronym> tag supports the following event attributes in HTML 4.01:
| Attribute | Value | Description |
|---|---|---|
| onclick | script | Script to be run on a mouse click |
| ondblclick | script | Script to be run on a mouse double-click |
| onmousedown | script | Script to be run when mouse button is pressed |
| onmousemove | script | Script to be run when mouse pointer moves |
| onmouseout | script | Script to be run when mouse pointer moves out of an element |
| onmouseover | script | Script to be run when mouse pointer moves over an element |
| onmouseup | script | Script to be run when 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 released |
| onkeyup | script | Script to be run when a key is released |
More information about Event Attributes.
Your message has been sent to W3Schools.