在表标签内部有一个表单标签是否有效? [英] Is it valid to have a form tag inside a table tag?
问题描述
大家好,我想知道是否有效在表标签内部有表单标签?一些文档链接将不胜感激。 ://dev.w3.org/html5/html-author/#the-td-elementrel =noreferrer> < form>
在< td>
元素。您可以在 http://validator.w3.org 查看此类内容。选择通过直接输入验证,然后粘贴以下HTML:
< table>
< tbody>
< tr>
< td>< form action =test>< div>< input type =text>< / div>< / form>< / td>
< / tr>
< / tbody>
< / table>
在更多选项下,选择验证文档片段。这使您可以检查一个HTML代码片段而无需为其编写整个页面。我使用它来检查HTML片段。
参考文献:
Hey guys, I would like to know if is it valid to have a form tag inside a table tag? some documentation links would be appreciated.
Thanks in advance.
<form>
is valid inside a <td>
element. You can check this sort of thing at http://validator.w3.org. Choose "Validate by direct input", then paste the following HTML:
<table>
<tbody>
<tr>
<td><form action="test"><div><input type="text"></div></form></td>
</tr>
</tbody>
</table>
Under "More options", select "Validate document fragment". This allows you to check a HTML snippet without writing an entire page for it. I use it for checking HTML fragments all the time.
References:
这篇关于在表标签内部有一个表单标签是否有效?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!