可以接受嵌套形式吗?
我在 HTML5 doc 中找不到任何内容谈论嵌套形式。我确定它列在某个页面的某个地方(也许是更新日志),但如果没有,我是否应该假设未提及与可接受的相同?
另外,HTML4 doc没有提到它。 也许这一直是允许的,我一直在遵守旧标准。</em>
先前提及
form must not contain other form elements.
There can be several forms in a single document, but the FORM element can't be nested.
最佳答案
HTML5 文档确实在 the section you link above 中提到了它:
Content model
Flow content, but with no form element descendants.
“内容模型”是指“这个元素可能包含的内容”。所以不,嵌套形式是不允许的。
关于html - 嵌套表单在 HTML5 中有效吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26536861/