Forum Moderators: open
So I'm struggling with this error I'm getting from the W3C validator.
Line 58, column 12: end tag for "BLOCKQUOTE" which is not finished
When I click the "Explain" link I get this:
You have a ‘FOO’ element, but you have omitted some required sub-element of it. For instance, a TABLE with no TR's would cause this error.
So what is the required sub-element of blockquote? I've googled myself crazy, searched in O'Reilly, and I turn up nothing.
For now I've abandoned the blockquote element and turned it into a div -- but dang it, it actually IS a quote.
<blockquote cite="http://some.site.com">
<p>Some quotation from the cite site!</p>
</blockquote>
Interestingly, using the blockquote element as a method for indenting text was deprecated in html4.01
I stuck the blockquote code from my previous post into a html4.01 strict page (nothing else on the page) and it validated fine.
Then I removed the <p> and </p> tags and it threw up errors. Have you tried surrounding the quotation text with <p> tags?
mipapage: The trailing "/" is fof XHTML, I don't think that it's at all necessary in HTML4.01...
Funny thing is both <p> and <blockquote> are block elements. And a <p> cannot contain a <blockquote> -- except that rule may change in XHTML 2.0
[w3.org...]
a <blockquote> is just that it is a quote of text that could be several paragraphs / images in length so there would need to be a way of still formatting the paragraphs or images within those quotes.
if its purpose was just to quote one line of text then the <cite> or <q> tag would be more semantically correct
Suzy
<!ELEMENT BLOCKQUOTE - - (%block;¦SCRIPT)+ -- long quotation -->
The Blockquote element must contain one or more of an element from %block; [w3.org], or the SCRIPT element.