-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path07_forms_input.html
91 lines (74 loc) · 2.52 KB
/
07_forms_input.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Forms and Input</title>
</head>
<body>
<form action="process.php">
<!-- Name: Text -->
<div>
<label for="name">Name</label><br>
<input type="text" id="name" name="name" value="Juan Dela Cruz">
</div>
<br>
<!-- Email -->
<div>
<label for="email">Email</label><br>
<input type="email" id="email" name="email" placeholder="Enter an email">
</div>
<!-- TextArea -->
<br>
<div>
<label for="message">Message</label><br>
<textarea name="message" id="message" cols="50" rows="5"></textarea>
</div>
<br>
<!-- Select -->
<div>
<label for="sex">Sex</label>
<select name="sex" id="sex">
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other" selected>Other</option>
</select>
</div>
<!-- Number -->
<br>
<div>
<label for="age">Age</label>
<input type="number" name="age" id="age">
</div>
<br>
<!-- Date -->
<div>
<label for="birthdate">Birthdate</label>
<input type="date" name="birthdate" id="birthdate">
</div>
<br>
<!-- Radio -->
<div>
<label for="membership">Membership</label>
<input type="radio" name="membership" value="simple" id="membership">Simple
<input type="radio" name="membership" value="standard" id="membership">Standard
<input type="radio" name="membership" value="super" id="membership">Super
</div>
<!-- checkbox -->
<br>
<div>
<label for="equipment">I like....</label>
<input type="checkbox" name="likes" value="bike" id="likes">Bike
<input type="checkbox" name="likes" value="car" id="likes">Car
<input type="checkbox" name="likes" value="plane" id="likes">Plane
</div>
<!-- Input Submit -->
<br>
<input type="submit" value="Submit">
<!-- button submit -->
<!-- <button type="submit">Submit</button> -->
<button type="reset">Reset</button>
</form>
</body>
</html>