-
Notifications
You must be signed in to change notification settings - Fork 0
/
build-a-survey-form.txt
98 lines (85 loc) · 2.35 KB
/
build-a-survey-form.txt
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
** start of undefined **
<!Doctype html>
<head>
<title>Yonah's first registration form</title>
<link rel="stylesheet" href="styles.css">
</head>
<html>
<h1 id="title">Yonah's First Registration Form</h1>
<body>
<p id="description">This was coded using html and css following the freecodecamp web development course.</p>
<form class="form"id="survey-form">
<label id="name-label" for="name" class="bio-titles">Name</label><br>
<input id="name" type="text" class="input" placeholder="Places" required><br>
<label id="email-label" for="dropdown" class="bio-titles">Email</label><br>
<input id="email" type="email" class="input" required placeholder="[email protected]"><br>
<label id="number-label" for="number" class="bio-titles">Age</label><br>
<input id="number" type="number" min="0" max="999" placeholder="27" class="input" required><br>
<label id="gender" type="dropdown" for="dropdown" class="bio-titles">Gender</label><br>
<select type="dropdown" id="dropdown" class="input">
<option></option>
<option>Male</option>
<option>Female</option>
<option>Non-Binary</option>
</select>
<div>
<h4>Are you rich? </h4>
<p> (We ask this because we want to know if we can make money off of you) </p>
Yes!<input type="radio" name="radio" value="yes"><br>
No!<input type="radio" name="radio" value="no"><br>
</div>
<div>
<h4>Can we sell your personal data?</h4>
<p> We like to get consent from our users before ruining their lives </p>
<input type="checkbox" value="yes-sell-data">Yes!<br>
<input type="checkbox" value="no-sell-data">No!<br>
</div>
<h4>Additional comments?</h4>
<textarea id="comments"></textarea>
<div>
<input type="submit" id="submit">
</div>
</form>
</body>
</html>
</head>
** end of undefined **
** start of undefined **
html{
background-color: #8ecae6;
}
h1 {
color: #023047;
text-align: center;
}
input {
border-color: #ffb703;
}
form {
background-color: white;
}
p {
text-align: center;
}
.bio-titles {
color: #ffb703;
background-color: white;
padding-left: 5%;
}
#name {
margin-left: 5%;
padding-left: 20%;
}
#email {
margin-left: 5%;
padding-left: 20%
}
#number {
margin-left: 5%;
padding-left: 20%;
}
#dropdown {
margin-left: 5%;
padding-left: 10%;
}
** end of undefined **