图中的块引用:何时使用页脚,何时使用figcaption?

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吗?

Bol*_*ock 5

基于以下事实:

  1. 如您所见,W3C规范中的非规范示例似乎彼此矛盾。
  2. W3C规范不包含任何规范性文本,表明任何一个选项都不适当。其中一个示例声称引用不是标题,但由于它不是规范性标题,因此您完全有权不同意。
  3. 从此WHATWG问题开始,现役的规范编辑以及W3C CSSWG(即不是HTML WG)成员认为,实际上,区别并不重要,尽管前者似乎倾向于figcaption
  4. 实际上,大多数作者figcaption以任何方式放置归因信息,没有明显的影响。

...结论似乎是两者之间没有有意义或实际的区别,而您选择使用的任何一个都是个人喜好问题。

话说回来,如果你仍然无法决定,figcaption是既规范更兼容,而不是在一致性方面(因为footerfigcaption同样符合),但在他们俩如何描述它的作用和使用条款,特别是有关该figure元素(通常,你期望与数字相关的文本是它的标题)。无论哪种方式,重要的是cite元素,因为最终它们是传达归因语义的元素,而不是容器元素。