-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathform.html
More file actions
88 lines (76 loc) · 4.2 KB
/
form.html
File metadata and controls
88 lines (76 loc) · 4.2 KB
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>Survey Form Project</title>
<link rel="stylesheet" href="styles.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- this is for styling on mobile and desktop displays -->
</head>
<body>
<header>
<h1 id="title">Project Form: My First Survey</h1>
<p id="description">Thank you for filling in all the inputs</p>
</header>
<form id="survey-form" action="htttps://httpbin.org/get" method:"get">
<p>
<label id="name-label">Name<input type="text" id="name" name="name" placeholder="Enter your name" required></label>
</p>
<p>
<label id="email-label">Email<input id="email" name="email" type="email" placeholder="Enter your Email" required></label>
</p>
<p>
<label id="number-label">Age (optional)<input type="number" name="age" id="number" min="10" max="99" placeholder="Age"></label>
</p>
<p>
<label for="dropdown">Which option best describes your current roll?</label>
<select id="dropdown" name="current-roll">
<option value="" disabled selected hidden>(Select current roll)</option>
<option value="student">Student</option>
<option value="job">Job</option>
<option value="learner">Learner</option>
<option value="other">Other</option>
</select>
</p>
<fieldset>
<p>Would you recommend freeCodeCamp to a friend?</p>
<!--remember radio type input needs the same name attribute to be single selected-->
<label><input type="radio" name="radio-name" value="definitely">Definitely</label>
<label><input type="radio" name="radio-name" value="maybe">Maybe</label>
<label><input type="radio" name="radio-name" value="not-sure">Not sure</label>
</fieldset>
<p>
<label for="favorite-feature">What is your favorite feature of freeCodeCamp?</label>
<select id="favorite-feature" name="feature">
<option value="" disabled selected hidden>(Select an option)</option> <!--as select does not have placeholder attribute this method is used to go around it disabled selected hidden-->
<option value="challenges">Challenges</option>
<option value="projects">Projects</option>
<option value="community">Community</option>
<option value="openSource">Open source</option>
</select>
</p>
<!-- <p>What is your favorite feature of freeCodeCamp?</p> -->
<fieldset>
<p>What would you like to see improved? (check all that apply)</p>
<label><input type="checkbox" value="front-end-projects" name="improved">Front-end Projects</label>
<label><input type="checkbox" value="back-end-projects" name="improved">Back-end Projects</label>
<label><input type="checkbox" value="data-visualization" name="improved">Data Visualization</label>
<label><input type="checkbox" value="challenges" name="improved">Challenges</label>
<label><input type="checkbox" value="open-source" name="improved">Open Source Community</label>
<label><input type="checkbox" value="gitter-rooms" name="improved">Gitter help rooms</label>
<label><input type="checkbox" value="videos" name="improved">Videos</label>
<label><input type="checkbox" value="city-meetups" name="improved">City Meetups</label>
<label><input type="checkbox" value="wiki" name="improved">Wiki</label>
<label><input type="checkbox" value="forum" name="improved">Forum</label>
<label><input type="checkbox" value="additional-courses" name="improved">Additional Courses</label>
</fieldset>
<label for="comment">Any comments or suggestions?</label>
<!-- <p>Any comments or suggestions?</p> -->
<br>
<textarea id="comment" name="comment" placeholder="enter your comment here..."></textarea>
<br>
<button id="submit" type="submit">submit</button>
</form>
</body>
</html>
<p>ejemplo</p>