W3C home > Mailing lists > Public > www-validator@w3.org > April 2008

Re: Session problem

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Mon, 14 Apr 2008 22:23:48 +0300
Message-ID: <019f01c89e65$124bc460$0500000a@DOCENDO>
To: "tiddo Langerak" <tiddo@live.nl>, <www-validator@w3.org>

tiddo Langerak wrote:

> Hi,When I try to validate my webpage
> http://toahulp.freehostia.com/index.php?page=login I got the next
> error message:document type does not allow element "input" here;
> missing one of "p", "h1", "h2", "h3", "h4", "h5", "h6", "div", "pre",
> "address", "fieldset", "ins", "del" start-tag .

That's pretty much the problem. You need to wrap the <input> element 
inside one of those containers. In practice, you want to use "div", or 
maybe "fieldset" or "p".

Alternatively, switch from Strict to Transitional DTD (not a good idea, 
but the problem really is that Strict does not allow "loose" inline 
elements inside a form).

Jukka K. Korpela ("Yucca")
Received on Monday, 14 April 2008 19:24:12 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:59:07 UTC