You are on page 1of 1

Practical No 6: Create a web page using Form Elements

Program:
<html>
<form action="">
Username <input type="text" name="userid"> <br>
User Password <input type="password" name="psw"> <br>
<input type="submit" name="Submit"> <br>
<input type="reset"> <br>
<input type="radio" name="gender" value="male" checked>Male
<input type="radio" name="gender" value="female">Female
<input type="radio" name="gender" value="other">Other <br>
<input type="checkbox" name="vehicle1" value="Bike"> I have a bike<br>
<input type="checkbox" name="vehicle2" value="Car"> I have a car</br>
</form>
</html>

Output:

You might also like