Is this HTML valid? <p>Does this code contain anything invalid. I have a form with a table inside. Is that alright?</p> <pre><code>&lt;form name="myForm" id="myForm"&gt; &lt;table id="myTab"&gt; &lt;tr&gt; &lt;td&gt; &lt;label for="id"&gt;User ID:&lt;/label&gt; &lt;input type="text" id="id" /&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt; &lt;td&gt; &lt;label for="pass"&gt;Password:&lt;/label&gt; &lt;input type="password" id="pass" name="pass" /&gt; &lt;/td&gt; &lt;td&gt; &lt;button type="button" class="submit"&gt;Submit&lt;/button&gt; &lt;/td&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td&gt;&lt;input type="reset" /&gt;&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; &lt;div class="error"&gt;&lt;/div&gt;&lt;div class="correct"&gt;&lt;/div&gt; &lt;/form&gt; </code></pre> <p>For the result -- <a href="http://jsfiddle.net/mBwAh/" rel="nofollow">http://jsfiddle.net/mBwAh/</a></p>