-
Notifications
You must be signed in to change notification settings - Fork 0
/
_challenge_02_survey_form.html
109 lines (101 loc) · 3.05 KB
/
_challenge_02_survey_form.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
<!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>Survey Form</title>
<style>
header,
form {
display: flex;
flex-direction: column;
align-items: center;
font-family: Arial, sans-serif;
}
form {
display: flex;
flex-direction: column;
align-items: center;
}
form input,
form select,
form textarea {
margin: 0 0 10px 0;
}
</style>
</head>
<body>
<header>
<h1 id="title">Survey Form</h1>
<p id="description">Thank you for help us!</p>
</header>
<form id="survey-form">
<label id="name-label" for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Your name" required>
<label id="email-label" for="email">Email</label>
<input type="email" id="email" name="email" placeholder="Your email" required>
<label id="number-label" for="number">Age</label>
<input type="number" id="number" name="number" min="10" max="99" placeholder="Age">
<p>What is your favorite color?</p>
<select id="dropdown" name="color" required>
<option disabled selected value>Select a color</option>
<option value="red">Red</option>
<option value="blue">Blue</option>
<option value="green">Green</option>
<option value="black">Black</option>
</select>
<p>What are your favorite technologies?</p>
<label
><input
name="technology"
value="react"
type="checkbox"
/> React</label
>
<label>
<input
name="technology"
value="angular"
type="checkbox"
/> Angular</label
>
<label
><input
name="technology"
value="vue"
type="checkbox"
/> Vue.js</label
>
<p>What is your favorite music style?</p>
<label>
<input name="music-style" value="rock" type="radio" checked>
Rock
</label>
<label>
<input name="music-style" value="blues" type="radio">
Blues
</label>
<label>
<input name="music-style" value="dance" type="radio">
Dance
</label>
<p>What is your favorite pet?</p>
<label>
<input name="favorite-pet" value="dog" type="radio" checked>
Dog
</label>
<label>
<input name="favorite-pet" value="cat" type="radio">
Cat
</label>
<p>Any comments or suggestions?</p>
<textarea
id="comments"
name="comment"
placeholder="Please, enter your comment here!">
</textarea>
<button type="submit" id="submit">Submit</button>
</form>
</body>
</html>