Is it valid to have a html form inside another html form?

前端 未结 14 1945
故里飘歌
故里飘歌 2020-11-22 06:01

Is it valid html to have the following:

14条回答
  •  执念已碎
    2020-11-22 07:02

    A non-JavaScript workaround for nesting form tags:

    Because you allow for

    all fields minus those within "b".

    when submitting "a", the following would work, using regular web-forms without fancy JavaScript tricks:

    Step 1. Put each form on its own web page.

    Step 2. Insert an iframe wherever you want this sub-form to appear.

    Step 3. Profit.

    I tried to use a code-playground website to show a demo, but many of them prohibit embedding their websites in iframes, even within their own domain.

提交回复
热议问题