W3C home > Mailing lists > Public > www-validator@w3.org > July 2008

XHTML 1.1 Validateor fails my FORM

From: Chris Wolcott <wolcott@attglobal.net>
Date: Sat, 19 Jul 2008 12:06:19 -0400
Message-ID: <488210FB.80508@attglobal.net>
To: www-validator@w3.org

This section fails the validator:

<div>
  <form action="https://www.xxxxxx.com/cgi-bin/webscr" method="post">
    <input type="hidden" name="cmd" value="_xclick" />
    <input type="hidden" name="business" value="name@domain.net" />
    <input type="hidden" name="item_name" value="Comment" />
    <input type="hidden" name="cn" value="Why I like your site" />
    <input type="image" 
src="https://www.xxxxxx.com/images/x-click-but04.gif" id="submit" 
alt="Comment on Site" />
  </form>
</div>

I get this error for every input element:
document type does not allow element "input" here; missing one of "ins", 
"del", "h1", "h2", "h3", "h4", "h5", "h6", "p", "div", "address", 
"fieldset" start-tag.

and finally the error: 'end tag for "form" which is not finished'.

All the sites I've looked at for how to do forms in xhtml say this is 
correct, even the TIDDY-UP program on the validator site returns this 
same code.  What is wrong with this?  How do I get the page to validate?
Received on Monday, 21 July 2008 08:07:42 GMT

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