Home  >  Q&A  >  body text

html5 - What is the relationship between form and input tags in Html?

In Html, what is the relationship between form and input tags?
Is there any affiliation between the two? I have seen that in many cases input is placed in the form and used . It is rarely used alone. What is the relationship between the two? Please give us a detailed introduction.

过去多啦不再A梦过去多啦不再A梦2712 days ago826

reply all(3)I'll reply

  • 仅有的幸福

    仅有的幸福2017-05-16 13:38:23

    Use it in

    form就是表单,既然是表单,那么里面自然可以包含input,即输入控件。
    当然一个form里一个input也没有(例如只有selecttextarea的表单)也是完全合法的。
    input不一定要包含在form, but it will be more troublesome to submit when used alone (ajax and other technologies must be used).

    reply
    0
  • 巴扎黑

    巴扎黑2017-05-16 13:38:23

    Put input in form

    reply
    0
  • 滿天的星座

    滿天的星座2017-05-16 13:38:23

    Contains relationships, and there are input tags in the form.

    reply
    0
  • Cancelreply