W3C home > Mailing lists > Public > www-validator@w3.org > May 2001

Re: XHTML 1 Strict , element "input" not allowed here

From: Liam Quinn <liam@htmlhelp.com>
Date: Mon, 14 May 2001 23:06:53 -0400 (EDT)
To: lists <lists@lophty.com>
cc: <www-validator@w3.org>
Message-ID: <Pine.LNX.4.30.0105142305150.1992-100000@localhost.localdomain>
On Mon, 14 May 2001, lists wrote:

> Trying to get a site of mine to validate against the xhtml1 strict dtd.
> Only one error remains - an input element inside of a form gives me the
> following error msg:
>
> Error: element "input" not allowed here; possible cause is an inline element
> containing a block-level element

In XHTML 1.0 Strict, like HTML 4 Strict, "form" must contain a block-level
element such as "p", "div", etc.  So put the "input" element inside a "p"
or "div".

-- 
Liam Quinn
Received on Monday, 14 May 2001 23:05:01 GMT

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