我是否应该花时间将术语和缩写更改为 <acronym>
和 <abbr>
?值得使用吗?使用这两个标签的优点是什么?它对 SEO 和屏幕阅读器有用吗?
最佳答案
参见 W3C specs .
安acronym是一种 abbreviation但反之则不然。
例如<acronym lang="en" title="Radio Detection And Ranging">Radar</acronym>
或 <abbr lang="en" title="Abbreviation">abbr.</abbr>
.
使用这些标签很可能没有或无限小的 SEO 好处,除非缩写不是众所周知的或你编造的东西或有一些歧义。例如,在一篇关于 LILO the Linux Loader 的文章中,您可能需要指定 <acronym title="Linux Loader">LILO</acronym>
以避免与后进后出混淆。
只有那些目标受众不熟悉的首字母缩略词和缩写词才能带来任何可访问性优势。例如,<abbr lang="en" title="Mister">Mr.</abbr>
几乎没有意义。 (WCAG checkpoint 4.2 在这一点上不同意我的观点。另请注意,我没有在我的帖子中提供 WCAG 的扩展)。
另一方面,如果您不使用 IMF 来指代国际货币基金组织,则使用 <acronym lang="en" title="Impossible Mission Force">IMF</acronym>
可能有意义.
现在,如果您还想在同一文档中使用 IMF 来表示国际货币基金组织,会发生什么情况?
文章The Accessibility Hat Trick: Getting Abbreviations Right也可能有用。
有趣的掘金:
The assertion that
abbr
is structural is misguided, as the point of the tag is the content of its title attribute....
In [XHTML] version 2, the
acronym
element has been deprecated, so we're now using the abbr element for all shortened forms.
关于html - 使用 <acronym> 和 <abbr> 有什么好处?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2196980/