Why is this wrong?
<table>
<form>
<tr><td>something something</td/>
</form>
</table>
I’m talking about position of form tags inside table tags.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
From the DTD:
These are the only elements you can have inside a
tableelement (in HTML 4 in this case, but you check the same kind of document for other versions, and it’s not changed much).On the other hand, a
formelement can contain any other block-level element (except other forms):And the
tdelement can contain any “flow” element (as seen in the first code block), and “flow” include block level elements:So you can put your
<form>tags either around the entire table or inside one table cell.