w3.org's blockquote
-page上有两个例子:
<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>
<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>
两者看起来与我非常相似 - 内容方面。但他们说关于第一个:
注意
在上面的示例中,引文包含在a的footer
中figure
元素,它将信息分组并关联 引用,引用。在这种情况下,未使用figcaption
元素, 作为引用的容器,因为它不是标题。
但是,我不明白两个版本之间的区别。有人可以解释区别以及区分footer
和figcaption
答案 0 :(得分:3)
基于以下事实:
figcaption
。 figcaption
中,没有明显的影响。...结论似乎是两者之间没有任何有意义或实际的区别,无论你选择使用哪一个都是个人偏好的问题。
话虽如此,如果您仍然无法做出决定,figcaption
更符合这两个规范,而不是一致性(因为footer
和figcaption
同样符合),但就它们如何描述其角色和用法而言,尤其是与figure
元素的关系(通常,您希望与图形相关联的文本作为其标题)。无论哪种方式,大多数重要的是cite
元素,因为最终它们是传达归属语义的元素,而不是它们的容器元素。