Tell us what’s happening:
The error associated with the code is " You should have a select
field with an id
of dropdown
" However, I do have an id on the element of ‘dropdown’".
Your code so far
<!-- file: index.html -->
<!DOCTYPE html>
<html>
<title>Survey
<link rel="stylesheet" href="styles.css">
</title>
<body><h1 id="title">Survey</h1>
<p id="description">This is a survey</p>
<form id="survey-form">
<input id="name" type="text" placeholder="Name" required>
<label id="name-label" >Name</label>
</input>
<input type="email" id="email" placeholder="Email" required>
<label id="email-label">Email</label>
</input>
<input id="number" type="number" placeholder="Number" option="0-5" min="0" max="5" required>
<label id="number-label">Number</label>
</input>
<input type= "radio" value="radio" name="choose" id="dropdown" min="1" max="5">
<input type="radio" value="radio" name="choose" id="radio"></input>
<input type="radio" name="choose" value="radio" id="radio"></input>
<input type="checkbox"
value="checkbox">Eggs</input>
<input type="checkbox" value="checkbox">Sauce</input>
<select id="dropdown">
<option>Option 1</option>
<option>Option 2</option>
</select>
<textarea></textarea>
<button id="submit">Submit</button>
</form>
</body>
</html>
/* file: styles.css */
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/115.0.0.0 Safari/537.36
Challenge: Survey Form - Build a Survey Form
Link to the challenge: