HTML form
A form is an important part of HTML that is primarily used to collect and submit information entered by the user.
<form name= "F1" action= "processing table single URL" method= "Get or post" >
</form>
1. Name: Sets the names of the forms.
2. Action: Sets the URL of the handler for the form.
3, Method: The way to submit the form.
tags commonly used in HTML forms:
Input fields <input> general use in forms
1. <inputtype= "Text"/> Enter a single line of text
2, <inputtype= "password"/> Enter the password
3. <inputtype= "Radio"/> radio button
4. <inputtype= "checkbox"/> Multi-select button
5. <inputtype= "image"/> Pictures
6, <inputtype= "file"/> files upload
7, <inputtype= "hidden"/> Hidden fields
8. <inputtype= "Reset"/> Undo button
9, <inputtype= "Submit"/> Submit button
10, <inputtype= "button"/> Normal button
11, multi-line text input marker <textarea>
<textarea name= "T1", Rows=x,cols=x>
</textarea>
Name to set the distinguished names.
Rows sets the number of lines in a text field
Cols Setting the number of columns in a text field
Disabled set Text to Disabled
Warp set to off no line break
12. Select Domain <select>
<select name=selectname>
<option selected> Option One </option>
< option > Options two </option>
......
</select>
<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
HTML form submission data: The HTML submission data must be set <input> label name and Value property so that the ASP program can get the corresponding value.<! DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 transitional//en" "Http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
HTML Learning Form