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

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 UTC