The <acronym> tag is used to show what each letter of the acronym stands for(using the title attribute). This tag is recognised by IE6 so it could be used as an alternative to the abbr tag.
Where/how To Use The <acronym> Tag
| Use in head or body section? | body |
| Inline or Block level tag? | Inline |
| HTML Tag Syntax? | <start tag>CONTENT</end tag> |
| XHTML Tag Syntax? | <start tag>CONTENT</end tag> |
Example acronym
| Code | Output |
|---|---|
| <acronym>HTML<acronym> | HTML |
| <acronym title="Hyper Text Markup Language">HTML<acronym> | HTML |
Hold your mouse over the second example and a box will come up with the text: "Hyper Text Markup Language".
Notes
Use the title attribute with this tag
There are no differences between XHTML and HTML for this tag
Common attributes for the acronym tag
class, style, id, title, dir, xml:lang, lang
Javascript Event attributes for the acronym tag
onmousedown, onmouseup, onclick, ondblclick, onmouseover, onmouseout, onmousemove, onkeydown, onkeyup, onkeypress

Comments