Monkey Bizzle
05-03-2005, 08:56 PM
I use the <blockquote> tag to quote people so that you can differentiate between that and regular text. Well, occasionally I validate my site to make sure it's still valid and the <blockquote> tag won't validate! This is the error that I get:
Line 656, column 11: document type does not allow element "blockquote" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<blockquote>
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>").
I made that part red because on the w3schools website it says:
The <blockquote> tag is supposed to contain only block-level elements within it, and not just plain text.
To validate the page as strict XHTML, you must add a block-level element around the text within the <blockquote> tag, like this:
<blockquote>
<p>here is a long quotation here is a long quotation</p>
</blockquote>
so I did that... but I guess that didn't work... initially I had no tags in there and just text and that didn't validate either. How can I use the <blockquote> tag and still have a valid site?
Line 656, column 11: document type does not allow element "blockquote" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag
<blockquote>
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>").
I made that part red because on the w3schools website it says:
The <blockquote> tag is supposed to contain only block-level elements within it, and not just plain text.
To validate the page as strict XHTML, you must add a block-level element around the text within the <blockquote> tag, like this:
<blockquote>
<p>here is a long quotation here is a long quotation</p>
</blockquote>
so I did that... but I guess that didn't work... initially I had no tags in there and just text and that didn't validate either. How can I use the <blockquote> tag and still have a valid site?