W3C home > Mailing lists > Public > www-validator@w3.org > September 2012

Re: problem with form tag

From: Jukka K. Korpela <jkorpela@cs.tut.fi>
Date: Fri, 14 Sep 2012 19:45:33 +0300
Message-ID: <50535F2D.3040303@cs.tut.fi>
To: Igor Kovalchuk <kovalchuk-ik@yandex.ua>
CC: www-validator@w3.org
2012-09-11 23:50, Igor Kovalchuk wrote:

> " Line 11, Column 7: end tag for "FORM" which is not finished"
>
> My site address is  http://kovik.org.ua/
>
> I had error message when used input tag also.

The reason is that the document declares HTML 4.01 Strict, in which a 
<form> element may contain block level elements only. This is an odd 
restriction, though it has a rationale (too long to fit into the 
margin). Your options, in order of preference (by me):

1) Wrap anything inside the form in block containers like <div>, <p>, or 
<table>, e.g.
<form action="http://kovik.org.ua/" method="get"><div>QQ</div>
</form>

2) Switch to HTML5 (which has its own can of worms, but it lacks the 
above requirement).

3) Switch to HTML 4.01 Transitional.

Yucca
Received on Friday, 14 September 2012 16:45:59 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 14 September 2012 16:46:05 GMT