-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
88 lines (70 loc) · 2.53 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
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>CodePen - Code Nation survey </title>
<link rel="stylesheet" href="./style.css">
</head>
<body>
<!-- partial:index.partial.html -->
<script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<div class="content">
<div class="header">
<h1 class="" id="title">Better by bike survey form</h1>
<p id="description">Tell us about yor cycling life.</p>
</div>
<form action="" class="" id="survey-form">
<fieldset class="data">
<legend>Your details</legend>
<label id="name-label" for="name">Name:
<input type="text" id="name" name="name" required placeholder="Name">
</label>
<label id="email-label" for="email">Email:
<input type="email" id="email" name="email" required placeholder="Email">
</label>
<label id="number-label" for="number">Age:
<input type="number" id="number" name="number" min="18" max="99" placeholder="Age">
</label>
</fieldset>
<fieldset class="data">
<legend>Questions</legend>
<div class="bike">
<label id="dropdown" for="dropdown">Bike type:</label>
<select id="dropdown">
<option value="Mountain">Mountain bike</option>
<option value="Road">Road bike</option>
<option value="Hybrid">Hubrid bike</option>
<option value="Folding">Folding bike</option>
</select>
</div>
<div class="miles">
<p>On average how many miles do you travel on your bike in a week?</p>
<input type="radio" value="10" name="number">
<label for="daily">0-10 miles</label><br>
<input type="radio" value="20" name="number">
<label for="two">11-20 miles</label><br>
<input type="radio" value="21" name="number">
<label for="three">20+ miles</label><br>
</div>
<div class="comm">
<label for="commute">Do you use it to commute?</label><br>
<input type="checkbox" name="commute" value="Yes">
<label for="vehicle1">Yes</label>
<input type="checkbox" name="commute" value="No">
<label for="vehicle2">No</label>
</div>
</fieldset>
<div class="comment">
<h3><label for="comment">Any comments?</label></h3>
<textarea id="comment" name="comment" rows="6" cols="50">
</textarea>
<button type="submit" id="submit" class="submit-button">
Submit
</button>
</div>
</form>
</div>
<!-- partial -->
<script src="./script.js"></script>
</body>
</html>