Forms

From MyWiki
Revision as of 16:37, 12 June 2014 by George2 (Talk | contribs)

Jump to: navigation, search

http://www.w3schools.com/html/html_forms.asp

 Text Fields
 <input type="text"> defines a one-line input field that a user can enter text into:
 <form>
 First name: <input type="text" name="firstname"><br>
  Last name: <input type="text" name="lastname">
 </form>

Also note that the default width of a text field is 20 characters.

<form>
Password: <input type="password" name="pwd">
</form>
<form>
<input type="radio" name="sex" value="male">Male<br>
<input type="radio" name="sex" value="female">Female
</form>
<form>
<input type="checkbox" name="vehicle" value="Bike">I have a bike<br>
<input type="checkbox" name="vehicle" value="Car">I have a car
</form>