Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

15
  • 174
    I agree with the answer, but to ask another, why not? Why does HTML not allow for nesting forms? To me, it appears to be a limitation that we would be better off without. There are many examples where using nested forms would be easier to program (i.e. using an upload photo form with a profile edit form). Commented Apr 6, 2013 at 1:32
  • 41
    @Nilzor he's not asking whether or not it can't be done, he's asking WHY not. I agree; nesting forms is actually really useful. So if you have a one page app with tabs, each tab is its own form (so you can submit it to save progress), and they're all wrapped in a form, which you can submit to save everything. Makes sense to me. Commented Dec 24, 2013 at 6:45
  • 8
    I agree with what others have said. This limitation seems arbitrary and harmful. Commented Jul 7, 2014 at 6:43
  • 28
    So we need HTML 5.1 with nested forms. Commented Jun 22, 2016 at 10:33
  • 11
    The problem with nested forms is the form architecture within HTML, where action within that form leads to a submit event. The question gets hair about what needs to be submitted. You may have several fields within a form, or several forms within a div, but it doesn't really make sense to have forms within a form. If content goes together, it's all one form; if content is submitted separately, it's really separate forms that don't need an outer form. Commented Apr 10, 2017 at 23:18