While I was certifying the survey form I got stuck at the request: You should have a select field with an id of dropdown. Can anyone help me solve this problem?
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="styles.css">
<title>Survey Form</title>
</head>
<body>
<h1 id="title"> Survey Form</h1>
<p id="description"> Thank you for taking the time to help us upgrade the service</p>
<form id="survey-form">
<div class="form-control">
<label for="name" id="name-label">Name
</label>
<br>
<input type="text" id="name" placeholder="Enter your name" required/>
</div>
<br>
<div class="form-control">
<label for="email" id="email-label">Email
</label>
<br>
<input type="email" id="email" placeholder="Enter your email" required/>
</div>
<br>
<div class="form-control">
<label for="number" id="number-label">Age
</label>
<br>
<input type="number" id="number" placeholder="Age" min="13" max="104" required/>
</div>
<br>
<div class="dropdown">
<label for="dropdown" id="dropdown" value="dropdown" required>Current role</label>
<br>
<select name="dropdown"id="dropdown" value="dropdown" required>
<option value="student">Student</option>
<option value="worker">Worker</option>
<option value="other">Other</option>
</select>
</div>
<br>
<div class="form-control">
<label> Would you recommend this site to your friend?</label>
<label for="recommend-1"><input type="radio" id="recommend-1" name="recommend" value="yes"/>Yes</label>
<br>
<label for="recommend-2"><input type="radio" id="recommend-2" name="recommend" value="no"/>No</label>
<br>
<label for="recommend-3"><input type="radio" id="recommend-3" name="recommend" value="maybe"/>Maybe</label>
</div>
<br>
<div class="form-control">
<label for="dropdown" id="dropdown">What is your favourite feature of this website</label>
<br>
<select name="dropdown" id="dropdown" required>
<option value="community">Community</option>
<option value="price">Price</option>
<option value="availability">Availability</option>
</select>
</div>
<br>
<div class="form-control">
<label> What do you approve of this page?</label>
<br>
<label for="caracteristic-1"><input type="checkbox" name="caracteristic" id="caracteristic" value="style"/>Style</label>
<br>
<label for="caracteristic-2"><input type="checkbox" name="caracteristic" id="caracteristic" value="useful"/>Useful</label>
<br>
<label for="caracteristic-3"><input type="checkbox" name="caracteristic" id="caracteristic" value="speed"/>Speed</label>
<br>
<label for="caracteristic-4"><input type="checkbox" name="caracteristic" id="caracteristic" value="creator"/>Creator</label>
</div>
<br>
<div class="form-control">
<label for="comments">Suggestions</label>
<br>
<textarea name="comments" id="comments" placeholder="Write any suggestions here"></textarea>
</div>
<br>
<br>
<button id="submit" type="submit" value="submit">Submit</button>
</form>
</body>
</html>
/* file: styles.css */
#surveyform {
font-family: Arial;
}
#submit {
font-size: 13px
}
Challenge: Survey Form - Build a Survey Form
Link to the challenge:
Summary
This text will be hidden