Tell us what’s happening:
My code is correct, but the challenge still won’t pass.
Instructions: “You should have a select field with an id of dropdown.”
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<head><link rel="stylesheet" href="styles.css">
<meta charset="UTF-8"></head>
<body>
<h1 id="title">Title</h1>
<p id="description">Description</p>
<form id="survey-form">
<label id="name-label">
<input id="name" type="text" placeholder="Name" required>
<label id="email-label">
<input id="email" type="email" placeholder="Email" required>
<br/><br/>
<label id="number-label">Number:
<input name="number" id="number" type="number" placeholder="1-10" min="0" max="10">
<label id="dropdown">Dropdown:
<select id="dropdown" required>
<option value="A">A</option><option value="B">B</option></select>
<label id="radio">Radio Buttons:
<input type="radio" name="radio-button" value="yes">
<label id="radio">
<input type="radio" name="radio-button" value="no">
<br/><br/>
<label id="checkboxes">Check Boxes
<input type="checkbox" name="checkboxes" value="1">
<label id="checkboxes">
<input type="checkbox" name="checkboxes" value="2">
<textarea></textarea>
<input id="submit" type="submit">
</form>
</body>
</html>
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.13; rv:109.0) Gecko/20100101 Firefox/114.0
Challenge: Survey Form - Build a Survey Form
Link to the challenge: