Unable to pass the test case

I wasn’t able to pass this test case
You should have a select field with an id of dropdown .

I have a select selector with dropdown id as shown in the photo above

please post all your code

<!DOCTYPE html>
<header>
  <link rel="stylesheet" href="styles.css">
</header>
<body>
  <h1 id="title">Simple Survey</h1>
  <p id="description">Please take 5 minutes to answer the questionnaire</p>
  <form id="survey-form">
    <label id="name-label">Name</label>
    <input id="name" type="text" placeholder="John Smith" required />
    <br>
    <label id="email-label">Email</label>
    <input id="email" type="email" placeholder="johnsmith@gmail.com" required />
    <br>
    <label id="number-label">Age</label>
    <input id="number" type="number" placeholder="20" min="1" max="120"/>
    <p>Gender</p>
    <input type="radio" id="dropdown" name="gender" value="male">
    <label>Male</label>
    <input type="radio" id="dropdown" name="gender" value="female">
    <label>Female</label>
    <input type="radio" id="dropdown" name="gender" value="unknown">
    <label>Prefer not to say</label>
    <br>
    <p>Current role</p>
    <select id="dropdown">
      <option value="select">Select</option>
      <option value="student">Student</option>
      <option value="fresh-graduate">Fresh Graduate</option>
      <option value="software-developer">Software Developer</option>
      <option value="others">Others</option>
      <option value="unemployed">Unemployed</option>
    </select>
    <br>
    <p>Reasons to learn programming</p>
    <label><input type="checkbox" value="become">To become a software developer</label>
    <label><input type="checkbox" value="explore">To explore more about the field</label>
    <label><input type="checkbox" value="interest">Interested in programming</label>
    <label><input type="checkbox" value="fun">For fun</label>
    <p>Remarks</p>
    <textarea></textarea>
    <br>
    <button id="submit">Submit</button>
  </form>
</body>

Attached

Also the link of the challenge is really useful when you ask for help!

not header, this is the head element

you have multiple elements with id of dropdown, ids should be unique in the page

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.