Jump to content

XHTML errors


Recommended Posts

Hi all,


I'm doing a bit of web design and when I attempt to validate my xhtml I get errors along the lines of


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


the line this refers to is:


<p><code> background { colour <1, 1, 1> }</code></p>


I've little idea what this means, possible something to do with whats allowed as children??


Can anyone help me out here?



Link to comment
Share on other sites

I would provide a link but the page is on an intranet and the other webserver I have access to isn't playing nicely.


Anyway, the problem was that I need to nest the <p> inside the <div> just like you said, thanks a lot!


Theres probably a few more errors to come....

Edited by Qchem
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...