A user account is required in order to edit this wiki, but we've had to disable public user registrations due to spam.

To request an account, ask an autoconfirmed user on Chat (such as one of these permanent autoconfirmed members).

Cite element: Difference between revisions

From WHATWG Wiki
Jump to navigation Jump to search
(→‎Opinions: connecting)
(move question from opinions section to an FAQ since there is an answer using existing markup in HTML4 and later.)
Line 45: Line 45:
* +1 [[User:Urlyman|Jonathan Schofield]]
* +1 [[User:Urlyman|Jonathan Schofield]]
* +1 [[User:Dalizard|Dimitar Haralanov]]
* +1 [[User:Dalizard|Dimitar Haralanov]]
* +1 [[User:Pigsonthewing|Andy Mabbett]] - Question: How could we connect the speaker, CITE to what was said, Q, without nesting? Perhaps using FOR, as in form labels:<pre><nowiki><cite for="good">Andy Mabbett</cite> said <q id="good">This is good</q>.</nowiki></pre>On the other hand, if we reverse that we could have a many-to-one relationship:<pre><nowiki><cite id="andy">Andy Mabbett</cite> said <q for="andy">This is good</q></nowiki> and later said <q for="andy">This is better</q>.</nowiki></pre>
* +1 [[User:Pigsonthewing|Andy Mabbett]]
 
* ...
* ...
</div>
</div>
Line 53: Line 52:
Articles supporting the use of the cite element for marking up speakers:
Articles supporting the use of the cite element for marking up speakers:
* <cite>[http://24ways.org/2009/incite-a-riot 24 Ways: Incite A Riot]</cite>, 2009-12-11, by Jeremy Keith
* <cite>[http://24ways.org/2009/incite-a-riot 24 Ways: Incite A Riot]</cite>, 2009-12-11, by Jeremy Keith
== FAQ ==
Frequently Asked Questions about using the cite element for marking up speakers.
=== how do you connect the speaker cite to what was said ===
'''Question:''' How could we connect the speaker, CITE to what was said, Q, without nesting? Perhaps using FOR, as in form labels:<pre><nowiki><cite for="good">Andy Mabbett</cite> said <q id="good">This is good</q>.</nowiki></pre>On the other hand, if we reverse that we could have a many-to-one relationship:<pre><nowiki><cite id="andy">Andy Mabbett</cite> said <q for="andy">This is good</q></nowiki> and later said <q for="andy">This is better</q>.</nowiki></pre>
'''Answer:''' The existing [http://www.w3.org/TR/html401/struct/text.html#adef-cite-Q 'cite' attribute] on the &lt;q&gt; and &lt;blockquote&gt; elements can be used for this, in HTML4 and later:
<pre style="background:#efe"><nowiki>
<cite id="andy">Andy Mabbett</cite> said
<q cite="#andy">This is good</q>
and later said
<q cite="#andy">This is better</q>.
</nowiki></pre>


== related ==
== related ==

Revision as of 16:07, 6 August 2010

Research, data, use cases, issues, and enhancements related to the HTML5 cite element.

Speaker

The cite element has been used (and recommended to be used) to refer to speakers in a conversation, or individuals when quoting them, thus HTML5 should explicitly permit and encourage this use.

This section serves to document both uses in the wild, and long-standing recommendations/documentations thereof.

Examples in the Wild

Documentation

Opinions

Opinions on whether HTML5 should explicitly permit and encourage use of the cite element to refer to speakers in a conversation, or individuals when quoting them:

articles

Articles supporting the use of the cite element for marking up speakers:

FAQ

Frequently Asked Questions about using the cite element for marking up speakers.

how do you connect the speaker cite to what was said

Question: How could we connect the speaker, CITE to what was said, Q, without nesting? Perhaps using FOR, as in form labels:

<cite for="good">Andy Mabbett</cite> said <q id="good">This is good</q>.

On the other hand, if we reverse that we could have a many-to-one relationship:

<cite id="andy">Andy Mabbett</cite> said <q for="andy">This is good</q> and later said <q for="andy">This is better</q>.</nowiki>

Answer: The existing 'cite' attribute on the <q> and <blockquote> elements can be used for this, in HTML4 and later:

<cite id="andy">Andy Mabbett</cite> said 
<q cite="#andy">This is good</q>
 and later said 
<q cite="#andy">This is better</q>.

related

references