HTML <acronym> tag
Examples
It marked acronyms as follows:
Browser Support
All major browsers support <acronym>.
Note: IE 5.5 or earlier versions of IE browser does not support <acronym> tag.
Tag definitions and instructions
HTML5 does not support <acronym> tag. Please use <abbr> tag instead.
<Acronym> tag defines acronyms.
If the acronym is a word, it can be read out, for example NATO, NASA, ASAP, GUI.
By taking only acronyms are marked, you will be able to browsers, spell checkers, translation systems and search engine indexers provide useful information.
Tips and Notes
Tip: In some browsers, when you move the mouse with the <acronym> tag of the first letter of the acronym, title attribute <acronym> tags can be used to display the full version of acronyms .
Differences between HTML 4.01 and HTML5
HTML5 does not support <acronym> tag, HTML 4.01 support <acronym> tag.
Standard property
In HTML 4.01, <acronym> tag supports the following standard attributes:
属性 | 值 | 描述 |
---|---|---|
class | classname | 规定元素的类名 |
dir | rtl ltr |
规定元素中内容的文本方向 |
id | id | 规定元素的唯一 id |
lang | language_code | 规定元素中内容的语言代码 |
style | style_definition | 规定元素的行内样式 |
title | text | 规定元素的额外信息 |
xml:lang | language_code | 规定 XHTML 文档中元素内容的语言代码 |
For a full description, go to Standard property .
Event Properties
In HTML 4.01, <acronym> tag supports the following event attributes:
属性 | 值 | 描述 |
---|---|---|
onclick | script | 当鼠标被单击时执行脚本 |
ondblclick | script | 当鼠标被双击时执行脚本 |
onmousedown | script | 当鼠标按钮被按下时执行脚本 |
onmousemove | script | 当鼠标指针移动时执行脚本 |
onmouseout | script | 当鼠标指针移出某元素时执行脚本 |
onmouseover | script | 当鼠标指针悬停于某元素之上时执行脚本 |
onmouseup | script | 当鼠标按钮被松开时执行脚本 |
onkeydown | script | 当键盘被按下时执行脚本 |
onkeypress | script | 当键盘被按下后又松开时执行脚本 |
onkeyup | script | 当键盘被松开时执行脚本 |
For a full description, go to Event Attributes .