PDA

View Full Version : How to fix this validation error?



rakoom2002
06 Jan 2009, 02:55 AM
# Error Line 29, Column 39: document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

<div class="popup ie_popup2"><h1><p>MePledge.com's vision is to assist those



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>").


im guessing it's *****ing because I have <p> inside of the h1 tag.... not sure though. even if this was it I dont know whats wrong with that.

Jason
06 Jan 2009, 03:00 AM
Remove the <p> tag.

<h1> is a html heading. Search engines put emphasis on it to determine your page content.
<p> is a paragraph.

You cannot have paragraphs in your headings.