Survey Form test failed

Hi all,

I’ve been trying to meet all the test requirements before jumping into css
but I can’t seem to find the problem. The test says my #number-label isn’t in the form but IT IS so
I have no idea whats going on :rage: Halp me please, and thank you.

Here’s my code:

The problem is the following:

 <label for="number-label">*Age</label>
 <input type="number" name="number" id="number" placeholder="1,2,3.." min="14" max="120">

You do not have an id attribute for the label and you are referencing “number-label” in your for attribute, but the input has an id of “number”.

EDIT: Although the tests are not checking for a problem on the following dropdown menu, the for attribute’s value of “gender” should instead be the same as the select element’s id.

<label for="gender">*Gender</label>
<select name="gender" id="dropdown">
  <option value="male">Male</option>
  <option value="female">Female</option>
  <option value="other">Other</option>
1 Like

Ohhh my god, I changed everything but that one! Oh my stupidity haha. Thank you so much! I changed the gender part too!