-
Notifications
You must be signed in to change notification settings - Fork 0
/
simple survey.html
47 lines (38 loc) · 1.73 KB
/
simple survey.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
<!DOCTYPE html>
<html>
<head>
<title>Survey Form</title>
</head>
<body>
<h1>Survey Form</h1>
<form action="/submit_survey" method="post">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required><br><br>
<label for="age">Age:</label>
<input type="number" id="age" name="age" min="18" max="99" required><br><br>
<label for="gender">Gender:</label>
<select id="gender" name="gender" required>
<option value="male">Male</option>
<option value="female">Female</option>
<option value="other">Other</option>
</select><br><br>
<label for="feedback">Feedback:</label><br>
<textarea id="feedback" name="feedback" rows="4" cols="50" required></textarea><br><br>
<label>Favorite Color:</label><br>
<input type="radio" id="color_red" name="favorite_color" value="red" required>
<label for="color_red">Red</label><br>
<input type="radio" id="color_blue" name="favorite_color" value="blue">
<label for="color_blue">Blue</label><br>
<input type="radio" id="color_green" name="favorite_color" value="green">
<label for="color_green">Green</label><br><br>
<label>Check the activities you enjoy:</label><br>
<input type="checkbox" id="activity_sports" name="activities[]" value="sports">
<label for="activity_sports">Sports</label><br>
<input type="checkbox" id="activity_reading" name="activities[]" value="reading">
<label for="activity_reading">Reading</label><br>
<input type="checkbox" id="activity_music" name="activities[]" value="music">
<label for="activity_music">Music</label><br><br>
<input type="submit" value="Submit">
</form>
</body>
</html>