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.
仅有的幸福2017-05-16 13:38:23
Use it in
form
就是表单,既然是表单,那么里面自然可以包含input
,即输入控件。
当然一个form
里一个input
也没有(例如只有select
和textarea
的表单)也是完全合法的。input
不一定要包含在form
, but it will be more troublesome to submit when used alone (ajax and other technologies must be used).