你能嵌套HTML表单吗? [英] Can you nest html forms?
本文介绍了你能嵌套HTML表单吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
是否可以像这样嵌套html表单
Is it possible to nest html forms like this
<form name="mainForm">
<form name="subForm">
</form>
</form>
这样这两个表单都可以工作吗?我的朋友遇到了这个问题,它是 subForm
工作的一部分,而另一部分却没有。
so that both forms work? My friend is having problems with this, a part of the subForm
works, while another part of it does not.
推荐答案
总之,没有。您可以在页面中使用多种表单,但不应嵌套。
In a word, no. You can have several forms in a page but they should not be nested.
从 html5草案:
From the html5 working draft:
4.10.3
表单
元素
4.10.3 The
form
element
内容模型
流内容,但没有表单元素后代。
Flow content, but with no form element descendants.
这篇关于你能嵌套HTML表单吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文