How I Seek Validation
May 18th, 2003
Can anybody tell me why <BLOCKQUOTE> causes my page not to validate as XHTML 1.1 Transitional?
UPDATE: Ryan Eby’s comment to this post were dead-on. I am now valid. Whew. :-)
Well i think this page doesn’t validate because you don’t have a semicolon after the leftthan sign decalration. As for your other pages the problem seems to be that you need to close your paragraph tag before the blockquote, cause your nesting paragraph tags which it doesn’t seem to like. When I changed that in your source it validated fine. Alternatively you might be able to take the paragraph tags out of the blockquote and maybe it will also validate.
Ryan–
Thanks for the quick response. You’re right, I noticed when I re-validated that the < in this particular had a typo.
But the actual <BLOCKQUOTE> tags seem to cause trouble elsewhere. Your nesting observation seems to have done the trick though. The presence of paragraph tags inside the BLOCKQUOTE doesn’t make a difference, but closing the P tag before the BLOCKQUOTE did the trick. :-)
Yeah I went back and read the spec and you can’t have block level tags within a paragraph tag which includes other paragraphs. I’m not sure if blockquote is a block-level but you definitely can’t nest the paragraphs like you had.