Forums / Developer / W3C Validation problem using <p> tags.

W3C Validation problem using <p> tags.

Author Message

Juan Asencio

Thursday 10 June 2010 2:01:14 am

Hi everybody, I'm having troubles validating my pages with w3c, complains about <p> tags that ez sets by default on the source code. Here is an example, any suggestions?:

Line 458, Column 3 document type does not allow element "p" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag

<p>

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

Juan Asencio

Thursday 10 June 2010 2:07:55 am

I can see on the source code from the page that <p> tags are previously used without having a problem. What could be the problem?

W3C complains about this error, just in a small area, also in a section after the error <p> are used again without a problem.

Gabriel Finkelstein

Thursday 10 June 2010 6:45:30 am

Could you paste the part of the html code around that line? What doctype are you using? (you can look for it in the first line of your html)

Juan Asencio

Tuesday 15 June 2010 3:26:23 am

Thanks for your reply Gabriel.

I had an error on my code and that was the problem. It was a font-size that was set on the wrong place.

Cheers,