1. Form label
""
Syntax:
"
Name: Define the names of the forms
Method: Defines how the form results are routed from the browser to the server, with the default parameters: get; Action: The location used to specify the form handler (server-side script handlers such as ASP)
2. text Box text box
is a form object that allows visitors to enter their own content, often used to fill in single words or short answers, such as names, addresses, and so on.
Code format:
Type= "Text" defines a single line text input box;
The name attribute defines the names of the text boxes, and to ensure accurate data acquisition, a unique name must be defined;
The Size property defines the width of the text box, in units of a single character width;
The MaxLength property defines the maximum number of characters entered.
The Value property defines the initial value of the text box
3. Password box
A password box is a special text box, which differs in that it is expressed in * when the content is entered, to ensure the security of the password.
Format: <input type= "password" name= "..." size= "..." maxlength= "..." >
4. Button
Type: Normal button, submit button, reset button.
1) Normal button
When type is a button, the input entry is a normal button. Syntax format: <input type= "button" value= "" "Name=" "" >
Value: Represents the text displayed above the button. Normal buttons are often used in conjunction with scripts.
2) Submit button
By submitting (input type=submit), you can submit the information in the form (form) to the file that the action points to in the form. Example: <input type= "Submit" value= "Submission" >
3) Reset button
When type is reset, the input entry is a reset button, and when the button is clicked, the browser can clear the input information from the form and revert to the default form content setting.
Syntax format: <input type= "reset" value= "" "Name=" "" >
5. Radio Box and check box
? Radio Box
Format: <input type= "Radio" Name= "" "Value=" "" checked> checked: Indicates that this item is selected by default
Value indicates that values are routed to the server side when selected.
Name indicates the names of the radio boxes, and if it is a single set of options, the value of the Name property has the same mutex effect.
? check box
Syntax format: <input type=checkbox name= "" "Value=" "" Checked >
HTML Web Form creation