OK, I see this alot.
document type does not allow element “p” here; missing one of “object”, “applet”, “map”, “iframe”, “button”, “ins”, “del” start-tag
the idea is I have a .postpic, based crudely on photomatt.net’s .postthumbs, so I can embed a a pic with a caption in a post.
But if I do p class=”postpic” inside the post, suddenly the xhtml validator gets annoyed with all the p tags in the page. I tried putting /p before p class… to make sure there was closing tag for the previous p because I know wordpress puts them in but doesn’t display them in the post editor. No luck there. If use a div tag in the post, the xhtml validator still gets mad – in fact, it doesn’t really like me doing almost any marking up in a post.
Why does XHTML do these things?
- You must be logged in to reply to this topic.