HTML INPUT TYPES

1]
<html>
<body>

<form action="">
First name:
<input type="text" name="firstname">
<br>
Last name:
<input type="text" name="lastname">
</form>

2]
<input type="password" name="password">

3]
<form action="">
I have a bike:
<input type="checkbox" name="vehicle" value="Bike">
<br />
I have a car:
<input type="checkbox" name="vehicle" value="Car">
<br />
I have an airplane:
<input type="checkbox" name="vehicle" value="Airplane">
</form>

4]
<form action="">
Male:
<input type="radio"
name="Sex" value="male">
<br>
Female:
<input type="radio"
name="Sex" value="female">
</form>

4]
<select name="cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
<option value="fiat">Fiat</option>
<option value="audi">Audi</option>
</select>

5]
<form action="">
<input type="button" value="Hello world!">
</form>

Comments

Popular Posts