Correct use of Blockquote, q and cite?

前端 未结 6 584
半阙折子戏
半阙折子戏 2020-12-13 03:45

Is this the correct use of Blockquote, q and cite?

Type HTML in the textarea above,
6条回答
  •  自闭症患者
    2020-12-13 04:20

    Using attributes such as the cite attribute of the blockquote or q doesn't make it easily displayable (without JS or tricky CSS) and so does not address the aim of displaying a reference link easily. It is now conforming to include cite (and/or footer) into blockquote to specify the source, either textually of through a URL, of the quote, like below :

    Beware of bugs in the above code; I have only proved it correct, not tried it.”

    Donald Knuth: Notes on the van Emde Boas construction of priority deques: An instructive use of recursion, March 29th, 1977

    Note that :

    • cases of cite that are part of the quote contents (not the source reference) are also deemed quite rare, and should be handle through a differenciating class on the relevant cite subtag)

    • Regarding q, it is indeed aimed to quote inline, but it is more likely to be used outside of blockquotes (quotes into quotes are quite rare).

提交回复
热议问题