Re: </form> not valid!?

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 UTC