PDA

View Full Version : W3C Validate search form



merc
07-03-2010, 09:55 PM
Does anyone know how to get the below to validate correctly?

XHTML 1.0 Transitional!

<form method="get" action="search.php" >
<input name="zoom_query" type="text" size="20">
<input type="submit" value="Search">
</form>

Thanks

Ray
07-05-2010, 04:08 AM
All tags need to be closed for XHTML, so your input tags should look like this:

<input name="zoom_query" type="text" size="20"></input>

Alternatively, they can be self-closing tags, like this:

<input name="zoom_query" type="text" size="20" />

Hope that helps.