在嵌入引用(嵌套引用)的内容上使用引用标签
Using cite tags on content that has embedded cites (nested cites)
我最近在阅读有关使用 html cite
标签的内容,并且我读到了一些相关内容,当您引用本身包含 cite
的内容时,您应该添加一个内部所有 cite
标签的额外属性,以声明它们来自内容而不是您所引用内容的作者。
我似乎再也找不到我阅读它的页面了,所以想知道是否有人可以在这里用正确的语法帮助我?
它是 W3C HTML5 规范中的 here,隐藏在无数示例中:
Note: There is no formal method for indicating the markup in a blockquote
is from a quoted source. It is suggested that if the footer
or cite
elements are included and these elements are also being used within a blockquote
to identify citations, the elements from the quoted source could be annotated with metadata to identify their origin, for example by using the class
attribute (a defined extensibility mechanism).
Code Example:
In this example the source of a quote includes a cite
element, which is annotated using the class
attribute:
<blockquote>
<p>My favorite book is <cite class="from-source">At Swim-Two-Birds</cite></p>
<footer>- <cite>Mike[tm]Smith</cite></footer>
</blockquote>
语法本身没有特别正确或错误的语法,但规范建议为此目的使用class
属性。
有趣的是,WHATWG HTML 根本没有提到这一点,大概是因为它有一套不同的规则来规定如何为 blockquote
元素提供 attribution/citations——即归属可能永远不会出现在里面,这就排除了在其中使用 cite
元素来提供属性,从而消除了 W3C HTML5.
提出的歧义
我最近在阅读有关使用 html cite
标签的内容,并且我读到了一些相关内容,当您引用本身包含 cite
的内容时,您应该添加一个内部所有 cite
标签的额外属性,以声明它们来自内容而不是您所引用内容的作者。
我似乎再也找不到我阅读它的页面了,所以想知道是否有人可以在这里用正确的语法帮助我?
它是 W3C HTML5 规范中的 here,隐藏在无数示例中:
Note: There is no formal method for indicating the markup in a
blockquote
is from a quoted source. It is suggested that if thefooter
orcite
elements are included and these elements are also being used within ablockquote
to identify citations, the elements from the quoted source could be annotated with metadata to identify their origin, for example by using theclass
attribute (a defined extensibility mechanism).Code Example:
In this example the source of a quote includes a
cite
element, which is annotated using theclass
attribute:<blockquote> <p>My favorite book is <cite class="from-source">At Swim-Two-Birds</cite></p> <footer>- <cite>Mike[tm]Smith</cite></footer> </blockquote>
语法本身没有特别正确或错误的语法,但规范建议为此目的使用class
属性。
有趣的是,WHATWG HTML 根本没有提到这一点,大概是因为它有一套不同的规则来规定如何为 blockquote
元素提供 attribution/citations——即归属可能永远不会出现在里面,这就排除了在其中使用 cite
元素来提供属性,从而消除了 W3C HTML5.