-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
110 lines (83 loc) · 3.52 KB
/
index.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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Form with Different Input Types</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<div class="form-container">
<h2 class="header">Sample Form with Different Input Types</h2>
<form action="#" method="POST">
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" placeholder="Enter your name">
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" placeholder="Enter your email">
</div>
<div class="form-group">
<label for="password">Password:</label>
<input type="password" id="password" name="password" placeholder="Enter your password">
</div>
>
<div class="form-group">
<label for="age">Age:</label>
<input type="number" id="age" name="age" min="1" max="100" placeholder="Enter your age">
</div>
<div class="form-group">
<label for="dob">Date of Birth:</label>
<input type="date" id="dob" name="dob">
</div>
<div class="form-group">
<label for="appointment">Appointment Time:</label>
<input type="time" id="appointment" name="appointment">
</div>
<div class="form-group">
<label for="color">Favorite Color:</label>
<input type="color" id="color" name="color">
</div>
<div class="form-group">
<label for="satisfaction">Satisfaction Level:</label>
<input type="range" id="satisfaction" name="satisfaction" min="0" max="10">
</div>
<div class="form-group">
<label>Gender:</label>
<input type="radio" id="male" name="gender" value="male">
<label for="male">Male</label>
<input type="radio" id="female" name="gender" value="female">
<label for="female">Female</label>
</div>
<div class="form-group">
<label>Hobbies:</label>
<input type="checkbox" id="reading" name="hobbies" value="Reading">
<label for="reading">Reading</label>
<input type="checkbox" id="traveling" name="hobbies" value="Traveling">
<label for="traveling">Traveling</label>
<input type="checkbox" id="sports" name="hobbies" value="Sports">
<label for="sports">Sports</label>
</div>
<div class="form-group">
<label for="country">Country:</label>
<select id="country" name="country">
<option value="usa">United States</option>
<option value="canada">Canada</option>
<option value="india">India</option>
<option value="uk">United Kingdom</option>
</select>
</div>
<div class="form-group">
<label for="profilePic">Upload Profile Picture:</label>
<input type="file" id="profilePic" name="profilePic">
</div>
<div class="form-group">
<label for="comments">Comments:</label>
<textarea id="comments" name="comments" rows="4" placeholder="Enter your comments"></textarea>
</div>
<button type="submit">Submit</button>
</form>
</div>
</body>
</html>