I get thrown out a bunch of errors on the xhtml 1.1 validator (W3C) whenever I use a element.
As soon as I change the element to a <div>
all the errors disappear.
In browsers the forms work in both states (as a <div>
or as a <form>
element, minus the fact that when I use <div>
, the submit button will not work.
Anyone have any ideas as to why the it's coming up as invalid?
<form class="form">
Name:<br/>
<input type="text" name="firstname"/><br/>
Email Address:<br/>
<input type="text" name="email"/><br/>
Comments:<br/>
<textarea name="Comments" rows="10" cols="50">Please enter your comments here.</textarea><br/><br/>
<input type="submit" value="Done"/><br/>
</form>