您是否应该使用 多次定义缩写?标签?

发布于 2024-12-04 01:31:12 字数 227 浏览 5 评论 0原文

如果我有一篇文章或博客文章,并且有一个缩写词或首字母缩略词,例如 SAD(季节性情感障碍),我是否应该每次在文档中出现首字母缩略词 SAD 时执行此操作?

<abbr title="Seasonal Affective Disorder">SAD</abbr>

如果只定义一次,缩写是否必须是第一次出现,还是可以是第三次或第四次?

If I have an article or blog post and I have an abbreviation or acronym such as SAD (Seasonal Affective Disorder) should I do this everytime the acronym SAD appears in a document?

<abbr title="Seasonal Affective Disorder">SAD</abbr>

If you do only define it once, does it have to be the very first time the abbreviation appears or could it be the 3rd or 4th time?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

反话 2024-12-11 01:31:12

根据维基百科风格手册,您应该只解释缩写一次。我也会将其扩展到您的情况,并且仅在第一次出现时使用缩写。

As per Wikipedias Manual of Style you should only explain an abbreviation once. I would extend this to your case as well and only use the abbreviation on first occurence.

东风软 2024-12-11 01:31:12

这取决于您的文档的结构以及您期望人们如何到达并阅读该文档。

例如,如果文档中有多个anchor,并且用户可以从另一个页面到达页面中间,或者从页面顶部向下跳到页面,那么最好在每个实例中使用 ...以确保访问者得到解释。

此外,为了便于访问,使用屏幕阅读器的人最好能听到缩写的读出。

This depends on how you document is structured and how you expect people to arrive at and read the document.

For instance, if there are multiple anchors in the document and the user could arrive at the middle of the page from another page or jump down the page from the top of the page, then it would be best to use <abbr> in every instance... to ensure the visitor gets the explanation.

Moreover, for accessibility, it would be best for those who use screen readers to hear the abbreviation read out.

横笛休吹塞上声 2024-12-11 01:31:12

最好在每次使用时都定义一个首字母缩略词,但是在文档中定义一次也是可以接受的。

或者,为了使常量定义更容易,您可以将上面的字符串分配给 php 变量,并使用它来输出 html(如果它确实很常用)。

编辑:从 SEO 的角度来看,您最好更改第一次出现,因为许多搜索引擎使用第一次出现来分配页面中的某些特征。

Preferably you should define an acronym whenever you use it, however defining it once in a document is also acceptable.

Alternatively to make constant defining easier you could assign the above string to a php variable and use that to output the the html if it was a really that commonly used.

Edit: From a SEO point of view you would want to preferable change the first occurrence as the first occurrence is what many search engines use to assign certain characteristics in a page.

橘味果▽酱 2024-12-11 01:31:12

第一次出现时应明确说明。
Accessiweb 参考列表中的标准 9.3 总结很好(缩写测试#2)

在每个网页上,每个缩写词的第一次出现是否满足以下条件之一?
- 缩写的含义是相邻链接
- 缩写是通过指向页面或页面上的位置的链接实现的,可以了解其含义
- 缩写包含在带有标题属性的链接中,可以了解其含义
- 缩写词的含义可在网站的术语表中找到
- 缩写是通过带有标题的缩写标签实现的,可以让您了解其含义

相关 WCAG 2.0 足够的技术是(不是规范性的,您可以使用自己的实现):

The first occurence should be explicited.
Criterion 9.3 from Accessiweb reference list summarizes it well (test #2 for abbreviations)

On each Web page, does the first occurence of each abbreviation pass one of the conditions below?
- The abbreviation is provided with its meaning as an adjacent link
- The abbreviation is implemented via a link referring to a page or a location on the page allowing to know its meaning
- The abbreviation is included in a link with a title attribute allowing to know its meaning
- The meaning of the abbreviation is available in a glossary on the site
- The abbreviation is implemented via an abbr tag with a title allowing to know its meaning

Relevant WCAG 2.0 sufficient techniques are (not normative, you may come with your own implementation):

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文