Click to See Complete Forum and Search --> : <blockquote> vs. <quote> + <cite>


KDLA
11-05-2008, 09:30 AM
One of the websites I'm developing uses many quotes as sidebars. How would you (semantically) code a quote like this?
----
"The text of the quote....."
- The Person Who Said It
----

Would you use blockquote, with the "Person Who Said It" in the cite?
<blockquote cite="The Person Who Said It">
<p>"The text of the quote....."<br />
- The Person Who Said It</p>
</blockquote>
or use <quote> and <cite>?

<quote>"The text of the quote....."</quote>
<cite>- The Person Who Said It</cite>

:confused:
KDLA

Fang
11-05-2008, 10:14 AM
Slides 10 - 13 (http://tantek.com/presentations/2005/09/elements-of-xhtml/#slide3)

scragar
11-05-2008, 10:19 AM
http://www.w3.org/TR/REC-html40/struct/text.html#edef-Q

block quote is for long quotations, q for short ones. With the way you have written your samples, it looks like you want blockquote, since it's a block level element, but I could be wrong.

Interestingly, cite according to the w3 is a URI pointing to the resource the quote comes from, not a name, go figure on that.

KDLA
11-05-2008, 11:33 AM
Slides 10 - 13 (http://tantek.com/presentations/2005/09/elements-of-xhtml/#slide3)
Hmmm.... that's the way I've done it in the past, but the "cite" portion of the blockquote always cites a website, rather than a book, report, etc. Does the cite always have to be an online resource?

KDLA
11-05-2008, 11:34 AM
Interestingly, cite according to the w3 is a URI pointing to the resource the quote comes from, not a name, go figure on that.
;) Yeah, I noticed that, too. Wasn't too helpful.

felgall
11-05-2008, 12:54 PM
The URI in the cite can also be the ISBN of the book that the quote is from - not all URI are necessarily web addresses.

Mr Initial Man
11-09-2008, 01:32 PM
Interestingly, cite according to the w3 is a URI pointing to the resource the quote comes from, not a name, go figure on that.

If cite is used as an element name, it's who said it. If it's used as an attribute, it's a URI.