当前位置: 动力学知识库 > 问答 > 编程问答 >

html - Why do form element can not be child of table,tr,td?

问题描述:

I was in situation where i need to use forms in a table row, but surprisingly I could see that form element can not be child of table,td,tr. Is there any logical reason for this restriction, or is there any work around for this ?

网友答案:

It could be in a td, but a table should only contain tr (or thead, tbody, tfoot). tr should only contain td. So it's not the form element that cannot be in the table, it is the table that doesn't allow most elements, except some specific ones.

分享给朋友:
您可能感兴趣的文章:
随机阅读: