lam*_*ade 6 html html5 semantic-markup
w3.org的blockquote
-page上有两个例子:
例14:
<figure>
<blockquote>
"That monster custom, who all sense doth eat
Of habit’s devil," <abbr title="et cetera">&c.</abbr> not in Folio
"What a falling off was there !
From me, whose love was of that dignity
That it went hand in hand even with the vow
I made to her in marriage, and to decline
Upon a wretch."
</blockquote>
<footer>
— <cite class="title">Shakespeare manual</cite>
by <cite class="author">Frederick Gard Fleay</cite>,
p19 (in Google Books)
</footer>
</figure>
Run Code Online (Sandbox Code Playgroud)
例19:
<figure>
<blockquote>
<p>
The truth may be puzzling. It may take some work to grapple with.
It may be counterintuitive. It may contradict deeply held
prejudices. It may not be consonant with what we desperately want to
be true. But our preferences do not determine what’s true. We have a
method, and that method helps us to reach not absolute truth, only
asymptotic approaches to the truth — never there, just closer
and closer, always finding vast new oceans of undiscovered
possibilities. Cleverly designed experiments are the key.
</p>
</blockquote>
<figcaption>
<cite>Carl Sagan</cite>,
in "<cite>Wonder and Skepticism</cite>",
from the <cite>Skeptical Inquirer</cite> Volume 19, Issue 1 (January-February 1995)
</figcaption>
</figure>
Run Code Online (Sandbox Code Playgroud)
两者看起来与我非常相似 - 内容方面.但他们说的是第一个:
注意
在上面的例子中,引用被包含内的footer
一个的figure
元件,这组和信息相关联,有关报价,与报价.figcaption
在这种情况下,该元素不被用作引用的容器,因为它不是标题.
但是,我不明白两个版本之间的区别.有人可以解释区别和区分footer
和之间的重要性figcaption
吗?
基于以下事实:
figcaption
。figcaption
以任何方式放置归因信息,没有明显的影响。...结论似乎是两者之间没有有意义或实际的区别,而您选择使用的任何一个都是个人喜好问题。
话说回来,如果你仍然无法决定,figcaption
是既规范更兼容,而不是在一致性方面(因为footer
和figcaption
被同样符合),但在他们俩如何描述它的作用和使用条款,特别是有关该figure
元素(通常,你期望与数字相关的文本是它的标题)。无论哪种方式,最重要的是cite
元素,因为最终它们是传达归因语义的元素,而不是容器元素。