Can you have a single logical <form> split across multiple
s?

后端 未结 4 608
Happy的楠姐
Happy的楠姐 2021-01-01 18:34

In my existing web page layout, which involves multiple files, one specifying the high-level layout, there are two elements, one for a left column, and one for a right colu

4条回答
  •  一个人的身影
    2021-01-01 18:59

    (Sorry to unaccept an answer and post my own, but I just found out apparently the answers I got are not up to date with HTML5!)

    HTML5 introduces a form= attribute for element [1]. So that you can do and have it in a nested inner form, or even outside of the` element.

    [1] http://www.w3.org/TR/html5/association-of-controls-and-forms.html#attr-fae-form

提交回复
热议问题