W3C home > Mailing lists > Public > www-validator@w3.org > February 2006

[VE][65] Error Message Feedback

From: richard <rjs@gomonkeyjam.com>
Date: Sun, 05 Feb 2006 08:42:27 +0000
To: www-validator@w3.org
Message-Id: <1139128948.20991.6.camel@localhost.localdomain>

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 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:20 GMT