PassMark Logo
Home » Forum

Announcement

Collapse
No announcement yet.

W3C Validate search form

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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

  • #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...
    X