-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlab3.html
More file actions
22 lines (22 loc) · 877 Bytes
/
Copy pathlab3.html
File metadata and controls
22 lines (22 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<!DOCTYPE html>
<html>
<head></head>
<body>
<h2>HTML Forms</h2>
<form action = "/action_page.php" method="get"> <!--method="post"-->
<label for = "fname">First Name:</label><br>
<input type = "text" id = "fname" name = "fname" value = "Vibha"><br><br>
<input type = "radio" id="male" name = "gender" value="male">
<label for = "male">Male</label><br>
<input type = "radio" id="female" name = "gender" value="female">
<label for = "female">Female</label><br>
<input type = "checkbox" id="vehicle1" name = "vehicle1" value="Bike">
<label for = "vehicle1">I have a bike.</label><br>
<input type = "checkbox" id="vehicle2" name = "vehicle2" value="Car">
<label for = "vehicle2">I have a car.</label><br>
<br><br>
<input type ="submit" value="submit">
</form>
<h5>If you click on the Submit button, the form data will be sent to a page called "/action_page.php"</h5>
</body>
</html>