In Html, what is the relationship between form and input tags?
Is there any affiliation between the two? I have seen that in many casesinput 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.
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).Put input in form
Contains relationships, and there are input tags in the form.