Home > front end >  The role of the HTML Form Form
The role of the HTML Form Form

Time:09-16

1. Could you please tell me in the HTML Form Form what role? When need to use the Form tag?

2. Online said to form the role of the tag is used to label other "package", so that as a whole, can submit data to the server, the form can contain input element, such as text fields, checkboxes, radio buttons, the submit button and so on, if there is some text fields, radio buttons and a submit button, at this time is not the "these text fields, radio buttons and a submit button" in the form tag, if you can excuse me?

3. Could you please tell me an HTML page can have multiple Form tag?

CodePudding user response:

Good morning, can which prawn to help me reply to the above problem, thank you

CodePudding user response:

1. The HTML Form Form can be used to display specific information on the web page, but is mainly used to collect information from the user, and will collect the information sent to the server handler, as a result, it is the bridge of a client and server to transfer data, is the main way to realize the user to interact with the server,
Generally, web site administrators to realize communication between visitors and, will have to use the bridge form, the form is usually the application of questionnaire, orders and search interface, etc.,
2. Some, such as "text fields, radio buttons and a submit button" attribute is not limited to Form elements, also applies to other elements, so you can [not to "the text fields, radio buttons and a submit button" in the Form tag],
3. Could you please tell me an HTML page can have multiple Form tag?/you try, you will know the concrete practice,

CodePudding user response:

HTML standards are defined, an element can have below what elements and its quantity, just know,

CodePudding user response:

I suspect that this is my question, ha, ha, ha, take account password for the login page
If you don't use form form, click login, parameters passed to the background: account and password, need manual assignment,
Form form and submit button need to use, only need to write name="accont", click on the button, will submit their assignment to the background,

CodePudding user response:

Don't look a lot here at https://www.w3school.com.cn/
  • Related