Form doesn't w3c validate, html 4.01
Hi.
I'm having trouble validating one of the forms on our website. Other forms validate, but this one doesn't want to work. The form is designed to have 3 drop down selectors and a go button. They are meant to display in one row, with about 8 cells (3 drop downs, 1 go button, 3 spacers).
It currently displays correctly, but doesn't validate. The validator complains that:
1. document type does not allow element "FORM" here.
and
2. document type does not allow element "TR" here.
Whenever I try and rearrange the tags, the display gets horribly messed up. It displays correctly now, but doesn't validate.
The code looks like this:
<body>
<table>
<tr><td>bunch of stuff</td></tr>
<form action="search.php" method="get" name="SearchPullDown">
<tr>
<td width="192" height="36" colspan="5"> <img src="images/image1.gif" alt="" ></td>
<td width="158" height="36" colspan="9" class="tableclass1">
<select name="selectname1" class="selectclass" id="id1" style="width:146px; height:20px;">
<option value="Option1" >Option 1</option>
</select></td>
<td width="30" height="36"> <img src="images/abc.gif" alt="" ></td>
<td width="154" height="36" colspan="5" class="tableclass2">
<select name="selectname2" class="selectclass" id="id2" style="width:146px; height:20px;">
<option value="Option2" >Option 2</option>
</select></td>
<td width="23" height="36" colspan="4"> <img src="images/lmn.gif" alt="" ></td>
<td width="157" height="36" colspan="5" class="tableclass3">
<select name="selectname3" class="selectclass" id="id3" style="width:146px; height:20px;">
<option value="Option3">Option3</option>
</select></td>
<td width="61" height="36" colspan="3">
<input type="image" src="images/zyx.gif" alt="Find"></td>
</tr>
</form>
</table>
</body>
Any help much appreciated. Thanks in advance.
|