<acronym> - HTML: HyperText Markup Language 编辑
Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.
Summary
The HTML Acronym Element (<acronym>
) allows authors to clearly indicate a sequence of characters that compose an acronym or abbreviation for a word.
Usage note: This element has been removed in HTML5 and shouldn't be used anymore. Instead web developers should use the <abbr>
element.
Attributes
This element only has global attributes, which are common to all elements.
DOM Interface
This element implements the HTMLElement
interface.
HTMLSpanElement
interface for this element.Example
<p>The <acronym title="World Wide Web">WWW</acronym> is only a component of the Internet.</p>
Default styling
Though the purpose of this tag is purely for the convenience of the author, its default styling varies from one browser to another:
- Some browsers, like Internet Explorer, do not style it differently than a
<span>
element. - Opera, Firefox, Chrome, and some others add a dotted underline to the content of the element.
- A few browsers not only add a dotted underline, but also put it in small caps; to avoid this styling, adding something like
font-variant
: none
in the CSS takes care of this case.
It is therefore recommended that web authors either explicitly style this element, or accept some cross-browser variation.
Specifications
Specification | Status | Comment |
---|---|---|
HTML 4.01 Specification The definition of '<acronym>' in that specification. | Recommendation |
Browser compatibility
BCD tables only load in the browser
See also
- The
<abbr>
HTML element
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论