HTML <acronym> tag
The <acronym> tag defines the acronym. It is an abbreviation that starts from the initial letter of the word or phrase.
HTML5 does not support this tag so it is better to use the <abbr> tag instead.
Examples:
ABC – American Broadcasting Company
ISRO – Indian Space Research Organisation
CBSE – Defence Research and Development Organisation
HTML – Hyper Text Markup Language
Syntax:
<abbr title=”expanded form of abbreviation> word/phrase</abbr>
In the example below, when you move your mouse-over “HTML”, it will display the title as “Hyper Text Markup Language”.
Example
<p>Learn <acronym title="Hyper Text Markup Language"> HTML</acronym> from TutorialBrain</p>
Default CSS Value
display: inline;
How Browser will display
INLINE.
Difference between HTML4.01, XHTML and HTML5
HTML4 | XHTML | HTML5 |
---|---|---|
None | No difference compared to HTML4 | Deprecated in HTML5 |
Attributes used with this tag
Attribute | Description |
---|---|
title | To show the expanded form of the word or phrase when the user mouse-over it. |
Even though the ‘title’ attribute can be used with this tag, we advise you not to use this tag.
To use the ‘title’ attribute, it is better to use the <abbr> tag.Global Attributes
The <acronym> tag supports Global attributes.
Event Attributes
The <acronym> tag supports Event attributes.
Supporting Browsers
Related Tags
<abbr>.