Actual use of <q>, <blockquote> and <cite>

Is this a valid use of q , blockquote, and cite ?

<q>Life is what happens when you're busy making other plans</q> <cite>John Lennon</cite> 

or

 <blockquote>Life is what happens when you're busy making other plans</blockquote> <cite>John Lennon</cite> 
+4
source share
4 answers

<q>

The q element represents some phrase text quoted from another source.

 <p>And then he said <q>I heart HTML5.</q></p> 

<cite>

The cite element represents the title of the work (e.g. book, document, essay, poem, score, song, script, film, television show, game, sculpture, painting, theater production, play, opera, music, exhibition, court report, etc.) d.). It can be a work that is cited or mentioned in detail (for example, a quote), or it can simply be a work that is mentioned along the way.

 <p>My favourite book is <cite>Introducing HTML5</cite> by Bruce and Remy.</p> 

<blockquote>

The blockquote element is a section that is cited from another source. The content inside the block must be specified from another source, the address of which, if any, can be specified in the cite attribute.

 <blockquote>What we have here is a quotation from another source.</blockquote> 
0
source

Quick response:

<q> for a brief inline quote.
<blockquote> for "large" or grouped elements that are part of a quote.
<cite> to pay tribute to the source.

The W3C HTML5 specification states the following:

q

The q element is a phrase expression quoted from another source.

Code example:
<p>The man said <q>Things that are impossible just take longer</q>. I disagreed with him.</p>

blockquote

The blockquote element represents content that is being cited from another source, optionally with a link that should be in the footer or a citation element, and possibly with changes to the line, such as annotations and abbreviations.
Code example:
<blockquote>
<p>I contend that we are both atheists. I just believe in one fewer god than you do. When you understand why you dismiss all the other possible gods, you will understand why I dismiss yours.</p>
<footer>β€” <cite>Stephen Roberts</cite></footer>
</blockquote>

cite

The cite element represents a link to creative work. This should include the title of the work or the name of the author (person, people or organization) or a URL link, which may be in abbreviated form according to the conventions used to add a metadata quote.
Code example:
<p><cite>Universal Declaration of Human Rights</cite>, United Nations, December 1948. Adopted by General Assembly resolution 217 A (III).</p>

+8
source

According to the standard?

If I read this question yesterday, I answered "no, this is wrong." Indeed, until recently, the HTML5 specification (indeed, both the latest version of Editor Draft and the Recommendation of the candidate ).

The cite element is the name of the work (e.g., book, document, essay, poem, score, song, script, film, television show, game, sculpture, painting, theater, performance, opera, musical, exhibition, court report, etc. .d.). It can be a work that is cited or mentioned in detail (for example, a quote), or it can simply be a work that is mentioned along the way.

The name of the person is not the name of the work, even if people call this person a part of the work, and therefore the element should not be used to indicate the names of people.

Therefore, the text content of the <cite> node should be the name of the work, not the name of the author.

However , this evening I discovered that the semantics of the <cite> element in the editor's project have been changed. Now he says

The cite element represents a link to creative work. It should include the title of the work or the name of the author (person, person or organization) or a link to the URL, which may be in abbreviated form in accordance with the conventions used to add citation metadata.

Consequently, author names are permitted. In fact, the document provides an example equivalent to yours.

I don’t know which version will β€œwin” and become part of the stable recommendation planned for next year (2014).

+4
source

Blockquote and Quotation tag example

Semantically, <blockquote> used for longer quotes that span the entire paragraph: Note that <p> is still inside the <blockquote> element.

As for <q> this element is used for shorter quotes that are in the paragraph. Which puts quotes around the element.

+1
source

Source: https://habr.com/ru/post/1490424/


All Articles