Here is a snippet of some code on my webpage (which I confirm is correct by viewing the source in the web browser):
Code: Select all
<div id="footer-search">
<form method="post" action="search.php">
<table style="padding:0px;">
<tr>
<td style="height: 25px; margin:0px;padding:0px;">
<input name="txtSearch" style="width: 100px" type="text" tabindex="1" />
</td>
<td style="height: 25px">
<input name="btnSearch" type="submit" value="Search" tabindex="2" />
</td>
</tr>
</table>
</form>
</div>
I looked at the code inside the validator software:The "td" element must have an end tag (</td>) but the end tag was not found. In XHTML, all elements not declared as empty (like "b", "p", "span", etc.) must have an end tag. Elements declared as empty (like "br", "img", "input", etc.) can have an end tag or can use the empty element shorthand.
Code: Select all
<div id="footer-search">
<form method="post" action="search.php">
<table style="padding:0px;">
<tr>
<td style="height: 25px; margin:0px;padding:0px;">
<input name="txtSearch" style="width: 100px" type="text" tabindex="1" />
</td>
<td style="height: 25px">
<input name="btnSearch" type="submit" value="Search" tabindex="2" />
<td>
</tr>
</table>
</form>
</div>