The common input type html

Single box, with the name to distinguish whether a set, value represents the value of the time of filing, the checked check represents

<input type="radio" name="sex" value="man"/ >

 

Checkbox, value represents the value at the time of submission, checked representation is checked

<input type="checkbox" name="hobby" value="sing"/ ><input type="checkbox" name="hobby" value="reading"/ >

 

Submission, name represents the name of identity, value represents submit button text

<input type="submit" name="login" value="登录"/>

Reset

<input type="reset">

Only current form submission when reset or submit 

 

Text box, type the default type of information is displayed in clear text, placeholder refers to the prompt

<Input type = "text" placeholder = "Please enter your user name" name = "username" />

 

Password box, type the default type of information is displayed with dark text

<input type="password"/>

Guess you like

Origin www.cnblogs.com/code-fun/p/11612052.html