W3C home > Mailing lists > Public > www-validator@w3.org > February 2009

Re: </form> not valid!?

From: Chuck Houpt <chuck@habilis.net>
Date: Wed, 11 Feb 2009 16:54:59 -0500
Cc: www-validator@w3.org
Message-Id: <AA8B274F-6F89-4E5B-B5AC-A5DD39D8C2EF@habilis.net>
To: casa.roberto@hotmail.it


On Feb 11, 2009, at 1:45 PM, Roberto wrote:
> My site is valid, but if I add at the end of any form this: "</ 
> form>" the validator shows me an error.. Why? It is a bug?
>
> The error is at line 90.
> <form method="post" action="search.php" / 
> >                                 Keyword:<br / 
> >                                 <input type="text" name="keyword"  
> value="" class="tx" style="width: 120px;" /><br / 
> >                                 <input type="submit" value="Cerca"  
> class="submit" />                         </form>

The "/>" at the end of "<form method... />" closes the form element,  
so the validator reports the second closing "</form>" as an error.  
Changing to <form method="post" action="search.php"> should fix the  
problem.

Cheers - Chuck
Received on Wednesday, 11 February 2009 21:55:37 GMT

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