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

Re: error message: document type does not allow element "FORM" here

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Fri, 20 Jan 2006 23:18:49 +1100
Message-ID: <43D0D529.4020801@lachy.id.au>
To: "s.soeren" <s.soeren@web.de>
CC: www-validator@w3.org

s.soeren wrote:
> http://validator.w3.org/check?verbose=1&uri=http%3A//www.blacmox.de/sites/contact.htm
> 
> the reason for failing the validation is the form inside the 
> inline-element <span> but i see no possibility to realize a 
> reasonable style-concept without applying a box-based layout that 
> reverts to an element that has no properties itself.

I don't even understand what you're trying to say there, but the 
quickest fix is to solve this particular validation issue is to use 
<div> instead of <span>.  As you mentioned, span is an inline element 
and can only contain other inline level elements.  Div is block level 
and can contain, among others, the form element.

-- 
Lachlan Hunt
http://lachy.id.au/
Received on Friday, 20 January 2006 12:19:08 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:58:54 UTC