My table have thead, tbody, and tfoot, I must have 6 columns (1/2/3).
But I got Error: Table columns in range 5…6 established by element th have no cells beginning in them. From line 17, column 36; to line 18, column 26.
I had my code checked on validator.w3.org and the error was indicated at th colspan="3">form
<table id="table">
<caption>
MinhDucHa
</caption>
<thead>
<tr >
<th>Name</th>
<th colspan="2">Date</th>
<th colspan="3">Form</th>
</tr>
</thead>
<tbody>
<tr>
<td>Bod</td>
<td>Jan. 13</td>
<td>March 12</td>
<td colspan="3">
<form>
<label for="bod-favorite-color">Favorite Colour:</label
><input type="text" id="bod-favorite-color" name="fname" />
</form>
</td>
</tr>
<tr>
<td>Md</td>
<td>Feb. 23</td>
<td>March 19</td>
<td colspan="3">
<form>
<label for="md-favorite-color">Favorite Colour:</label
><input type="text" id="md-favorite-color" name="fname" />
</form>
</td>
</tr>
<tr>
<td>Suzy</td>
<td>Jan. 18</td>
<td>Dec. 24</td>
<td colspan="3">
<form>
<label for="suzy-favorite-color">Favorite Colour:</label
><input type="text" id="suzy-favorite-color" name="fname" />
</form>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<th colspan="6">Copyright ©2023 Minh Duc Ha</th>
</tr>
</tfoot>
</table>