HTML5 block-quote with author

后端 未结 6 1648
名媛妹妹
名媛妹妹 2021-01-31 02:15

Hi I\'m seeing a great number of different ways to implementat blockquote in html but it doesn\'t seem clear in its documentation how should I properly format a

6条回答
  •  北荒
    北荒 (楼主)
    2021-01-31 03:08

    UPDATE 2020

    WHATWG says about the blockquote element

    Attribution for the quotation, if any, must be placed outside the blockquote element.

    WHATWG says about the cite element

    The cite element represents the title of a work (e.g. a book, a paper, [...])

    A person's name is not the title of a work [...] and the element must therefore not be used to mark up people's names.

    So the following HTML it's fine:

    In victory, you deserve Champagne, in defeat, you need it.

    — Napoleon Bonaparte

    UPDATE 2018

    HTML 5.3 Editor’s Draft, 9 March 2018

    W3C says about the cite element:

    The cite element represents a reference to a creative work. It must include the title of the work or the name of the author (person, people or organization) or an URL reference, or a reference in abbreviated form as per the conventions used for the addition of citation metadata.

    So the following HTML it's fine:

    Those who pass by us, do not go alone, and do not leave us alone; they leave a bit of themselves, and take a little of us. Antoine de Saint-Exupéry

提交回复
热议问题