Pages

Tuesday, December 18, 2012

HTML Forms


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>

EXAMPLE

First name:
Last name:

Password Field

<input type="password"> defines a password field:


EXAMPLE

<form>
Password: <input type="password" name="pwd">
</form>
Password:


Radio Buttons

<input type="radio"> defines a radio button. Radio buttons let a user select ONLY ONE of a limited number of choices:

<form>
<input type="radio" name="sex" value="male">Male<br>
<input type="radio" name="sex" value="female">Female
</form>

EXAMPLE
Male
Female


Checkboxes

<input type="checkbox"> defines a checkbox. Checkboxes let a user select ZERO or MORE options of a limited number of choices.


<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>

I have a bike
I have a car

NICE TUTO FOR ME I THINK!!!

No comments:

Post a Comment