PassMark Logo
Home » Forum

W3C Validate search form

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • merc
    Junior Member
    • Jun 2010
    • 6

    #1

    W3C Validate search form

    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
    Administrator
    • Dec 2004
    • 4357

    #2
    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.
    --Ray
    Wrensoft Web Software
    Sydney, Australia
    Zoom Search Engine

    Comment

    Working...