Hello Tee,

This might be the way to go. It's what I do and I think it's a pretty good 
practice:

<blockquote cite="url-of-source-if-applicable">
    <p>
        This is the body of text quoted.
        This is the body of text quoted.
            <cite>-- Who said it</cite>
    </p>
</blockquote>

The cite attribute within the blockquote element wouldn't be used if not 
available. The cite element, though, should be used. I actually apply a 
decorative end-quote background image to my cite element (and a decorative 
leading quote image to the blockquote itself). It would be fine to place the 
cite element outside of the paragraph, which might be preferred if it is a 
multi-paragraph quote.

Hope this helps.

Respectfully,
Mike Cherim

PS. You can see an example here: 
http://green-beast.com/beastblog/index.php/2007/01/13/making-blockquotes/
(this is a support blog for a WordPress theme).








----- Original Message ----- 
From: "Tee G. Peng" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, February 11, 2007 10:46 PM
Subject: [WSG] blockquote in xhtml strict


Hi, I have a block of text that uses blockquote

u
"I came because this is one of the best......"
- john doe


in my markup:
<div>
<img src="images/jd.jpg" alt="john doe" width="83" height="58" />
<blockquote>"I came because this is one of the best......"
<span>- john doe</span>

   </blockquote>

It gives me validation error:
You have used character data somewhere it is not permitted to appear.
Mistakes that can cause this error include putting text directly in
the body of the document without wrapping it in a container element
(such as a <p>aragraph</p>) or forgetting to quote an attribute value
(where characters such as "%" and "/" are common, but cannot appear
without surrounding quotes).

After some reading about 'blockquote' element in xhtml strict from
google search, I added <p> tag and removed the <span>

<p><blockquote>"I came because this is one of the best......"
<span>- john doe</span>

   </blockquote>
</p>

now it gives me this:

The mentioned element is not allowed to appear in the context in
which you've placed it; the other mentioned elements are the only
ones that are both allowed there and can contain the element
mentioned. This might mean that you need a containing element, or
possibly that you've forgotten to close a previous element.

One possible cause for this message is that you have attempted to put
a block-level element (such as "<p>" or "<table>") inside an inline
element (such as "<a>", "<span>", or "<font>").


What am I missing?

Thanks!

tee






*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************



*******************************************************************
List Guidelines: http://webstandardsgroup.org/mail/guidelines.cfm
Unsubscribe: http://webstandardsgroup.org/join/unsubscribe.cfm
Help: [EMAIL PROTECTED]
*******************************************************************

Reply via email to