[VE][65] Error Message Feedback

Validating http://www.gomonkeyjam.com/
Error [65]: "document type does not allow element X here; missing one of Y start-tag"

Hello,

The problem centres around me trying to use a <div> as a button for a hyperlink.

My code follows the structure,

<a href="index.html"><div class="className"><p class="className">Home</p></div></a>

Which is apparently not well-formed. The page renders perfectly in my browser (firefox 1.5).

The problem appears to be that <div> is not allowed within <p> although I really don't understand why. It seems like an unnatural restriction.

Is it really disallowed in xhtml 1.1 strict?

Thank you.

Richard Simkins
rjs@gomonkeyjam.com

Received on Sunday, 5 February 2006 14:09:39 UTC