Can you nest html forms?

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

Is it possible to nest html forms like this

so

20条回答
  •  鱼传尺愫
    2020-11-21 05:15

    Use empty form tag before your nested form

    Tested and Worked on Firefox, Chrome

    Not Tested on I.E.

    EDIT by @adusza: As the commenters pointed out, the above code does not result in nested forms. However, if you add div elements like below, you will have subForm inside mainForm, and the first blank form will be removed.

提交回复
热议问题