Coding With Fun
Home Docker Django Node.js Articles Python pip guide FAQ Policy

HTML <acronym> tags


May 04, 2021 HTML Reference Manual


Table of contents


HTML -lt;acronym-tag - HTML5 does not support

The label allows for the explicit declaration of a sequence of characters that constitute an acronym or acronym for a word.

The label has been removed from HTML5 and should no longer be used, and web developers should use the label.

The marked acronyms are as follows:

Can I get this <acronym title="as soon as possible">ASAP</acronym>?

Try it out . . .

Browser support

HTML <acronym> tags HTML <acronym> tags HTML <acronym> tags HTML <acronym> tags HTML <acronym> tags

All major browsers support slt;acronym.

Note: I E 5.5 or earlier versions of IE browsers do not support the hashtag.


Label definition and instructions for use

HTML5 does not support labeling. P lease use the hashtag instead of the label.

Labels define acronyms.

If the acronym is a word, it can be read out, such as NATO, NASA, ASAP, GUI.

By tagging with only acronyms, you can provide useful information for browsers, spell checkers, translation systems, and search engine scalers.


Tips and comments

Tip: In some browsers, when you move your mouse to a device with a .lt;acronym.gt; On the acronym of the label, The title property of the label can be used to display the full version of the acronym.


The difference between HTML 4.01 and HTML5

HTML5 does not support labels, and HTML 4.01 does not support labels.


The standard property

In HTML 4.01, the label supports the following standard properties:

属性 描述
class classname 规定元素的类名
dir rtl
ltr
规定元素中内容的文本方向
id id 规定元素的唯一 id
lang language_code 规定元素中内容的语言代码
style style_definition 规定元素的行内样式
title text 规定元素的额外信息
xml:lang language_code 规定 XHTML 文档中元素内容的语言代码

For a complete description, visit Standard Properties.


The event property

In HTML 4.01, the label supports the following event properties:

属性 描述
onclick script 当鼠标被单击时执行脚本
ondblclick script 当鼠标被双击时执行脚本
onmousedown script 当鼠标按钮被按下时执行脚本
onmousemove script 当鼠标指针移动时执行脚本
onmouseout script 当鼠标指针移出某元素时执行脚本
onmouseover script 当鼠标指针悬停于某元素之上时执行脚本
onmouseup script 当鼠标按钮被松开时执行脚本
onkeydown script 当键盘被按下时执行脚本
onkeypress script 当键盘被按下后又松开时执行脚本
onkeyup script 当键盘被松开时执行脚本

For a complete description, visit Event Properties.