htmlForm tags: "
The operating environment of this tutorial: Windows 7 system, CSS3&&HTML5 version, Dell G3 computer.
HTML forms are used to collect different types of user input. Form elements refer to different types of input elements, check boxes, radio buttons, submit buttons, etc.
HTML form tags:
Extended information:element
element is the most important form element.
Elements have many forms, according to different type attributes.
1. Text Fields
The text field is set through thetag. When the user wants to type letters, numbers, etc. in the form , the text field will be used.
The browser displays the following:
Note: The form itself is not visible. Also, in most browsers, the default width of a text field is 20 characters.
2. Password field
The password field is defined by the tag:
The browser display effect is as follows:
Note: Password field characters will not be displayed in plain text, but will be replaced by asterisks or dots.
3. Radio Buttons
tag defines the form radio button options
Browser display effect As follows:
4. Checkboxes
defines the checkbox. Users need to start from Select one or several options from a number of given choices.
The browser display effect is as follows:
5. Submit Button
Defines the submit button.
When the user clicks the confirm button, the content of the form will be transferred to another file. The form's action attribute defines the file name of the destination file. The file defined by the action attribute usually performs related processing on the input data received. :
The browser display effect is as follows:
If you type a few letters in the text box above and click the confirm button, then enter the data The page that will be sent to "html_form_action.php". This page will display the entered results.
Recommended tutorial: "html video tutorial"
The above is the detailed content of What are the tags in html forms. For more information, please follow other related articles on the PHP Chinese website!