Can you nest html forms?

前端 未结 20 3112
悲&欢浪女
悲&欢浪女 2020-11-21 04:56

Is it possible to nest html forms like this

so

20条回答
  •  一生所求
    2020-11-21 05:12

    I ran into a similar problem, and I know that is not an answer to the question, but it can be of help to someone with this kind of problem:
    if there is need to put the elements of two or more forms in a given sequence, the HTML5 form attribute can be the solution.

    From http://www.w3schools.com/tags/att_input_form.asp:

    1. The form attribute is new in HTML5.
    2. Specifies which
      element an element belongs to. The value of this attribute must be the id attribute of a element in the same document.

    Scenario:

    • input_Form1_n1
    • input_Form2_n1
    • input_Form1_n2
    • input_Form2_n2

    Implementation:

    
    

    Here you'll find browser's compatibility.

提交回复
热议问题