I was building a Wishlist/Cart table using the HTML table structure and I needed to insert multiple forms for every single table row. But none of the following solutions are valid because putting a form tag inside the structure of a table is not allowed and it breaks the structure of the table.
<table>
<thead>
<tr>
<th>1st column</th>
<th>2nd column</th>
<th>3rd column</th>
</tr>
</thead>
<tbody>
<form id="1st_row_form">
<tr>
<td><input value="1 1"></td>
<td><input value="1 2"></td>
<td><input value="1 3"></td>
</tr>
</form>
<form id="2nd_row_form">
<tr>
<td><input value="2 1"></td>
<td><input value="2 2"></td>
<td><input value="2 3"></td>
</tr>
</form>
</tbody>
</table>
or:
<table>
<thead>
<tr>
<th>1st column</th>
<th>2nd column</th>
<th>3rd column</th>
</tr>
</thead>
<tbody>
<tr>
<form id="1st_row_form">
<td><input value="1 1"></td>
<td><input value="1 2"></td>
<td><input value="1 3"></td>
</form>
</tr>
<tr>
<form id="2nd_row_form">
<td><input value="2 1"></td>
<td><input value="2 2"></td>
<td><input value="2 3"></td>
</form>
</tr>
</tbody>
</table>