There are too many input properties, I'll just list a few that I like.
Disabled: Disable this element on first load
Checked: This element is selected on first load
Form: One or more forms that the input field belongs to
Hieght: Defines the height of the input field for Type=image
Max_length: Maximum length of characters in the input field
Min: On the contrary
Name: Define the names of the input elements
Pattern: The mode or format of the input field value
Multiple: Allow more than one value
Required: The value of the input field is required
Size: Enter the width of the field
Width: input field widths, for type=image
Type
Button Press Twist
CheckBox check box
File files
Hidden hidden
Imag pictures
Password Password
Radio Radio Box
Submit Press Twist
Text literal
The value of the Value:input element, the identity that submits the background
Example workspace:
Text fields: Form forms: block-level labels
<form>#文本域 Surname:<input type="text"Name="FirstName">Name:<input type="text"Name="LastName"> <input type="Submit"Value="Submit"> </form> <form>#密码 user name:<input type="text"Name="User">Password:<input type="Password"Name="Password"> <input type="Submit"Value="Submit"> </form> <form>#复选框 I like: One Piece car:<input type="checkbox">Beauty:<input type="checkbox">Movie:<input type="checkbox"> <input type="Submit"Value="Submit"> </form> <form>#单选框, name must be consistent in order to mutually exclusive your surname male:<input type="Radio"Name="R">female:<input type="Radio"Name="R"> <input type="Submit"Value="Submit"> </form> <form>#围绕数据的fileset<fieldset> <legend> Health Information </legend>Height:<input type="text">Weight:<input type="text"> </fieldset> </form>
View Code
:
HTML Input Series tags