-
Notifications
You must be signed in to change notification settings - Fork 0
/
HTML-CSStrial(build a survey form)
54 lines (54 loc) · 2.07 KB
/
HTML-CSStrial(build a survey form)
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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>Survey Form</title>
<link rel="stylesheet" href="css-builasurveyform.css">
</head>
<body>
<h1 id="title">Survey Form</h1>
<p id="description">Please fill out the form below to help us improve our services:</p>
<form id="survey-form">
<div>
<label for="name" id="name-label">Name:</label>
<input type="text" id="name" required placeholder="Enter your full name">
</div>
<div>
<label for="email" id="email-label">Email:</label>
<input type="email" id="email" placeholder="Enter your email address" required>
</div>
<div>
<label for="number" id="number-label">Age:</label>
<input type="number" id="number" min="18" max="100" placeholder="Enter your age">
</div>
<div>
<label for="dropdown" id="dropdown-label">How did you hear about us?</label>
<select id="dropdown">
<option value="friend">From a friend</option>
<option value="ad">From an advertisement</option>
</select>
</div>
<div>
<p>What type of content do you prefer?</p>
<input type="radio" id="blog-posts" name="content-preference" value="blog-posts">
<label for="blog-posts">Blog posts</label>
<input type="radio" id="videos" name="content-preference" value="videos">
<label for="videos">Videos</label>
</div>
<div>
<p>What topics are you interested in?</p>
<input type="checkbox" id="technology" name="interests" value="technology">
<label for="technology">Technology</label>
<input type="checkbox" id="health" name="interests" value="health">
<label for="health">Health</label>
<input type="checkbox" id="lifestyle" name="interests" value="lifestyle">
<label for="lifestyle">Lifestyle</label>
</div>
<div>
<label for="comments">Additional comments:</label>
<textarea id="comments"></textarea>
</div>
<button type="submit" id="submit">Submit</button>
</form>
</body>
</html>