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"


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
Received on Sunday, 5 February 2006 14:09:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:47 UTC