Design a Registration Form - Step 31

<fieldset>

Upload a profile picture:

<input id="profile-picture" type="file" />

Input your age (years):

<input id="age" type="number" min="13" max="120" />

<label>

How did you hear about us?

<select name="referrer">


<option value="">(select one)</option>

<option value="1">freeCodeCamp News</option>

<option value="2">freeCodeCamp YouTube Channel</option>

<option value="3">freeCodeCamp Forum</option>

<option value="4">Other</option>

</select>

</label>

</fieldset>


  <a href=" https://www.freecodecamp.org/news/terms-of-service ">Read our terms and conditions</a>

AM GETTING THIS ERROR Sorry, your code does not pass. Keep trying.

You should nest only the select element within a label element.

Congrats on finishing step 38!

link for the challenge

Please next time click on the Get Help > Ask for Help button located on the challenge.

image

Currently your post is not formatted correctly.
Can you please send your code again?

<fieldset>
  <label for="profile-picture">Upload a profile picture:</label>
  <input id="profile-picture" type="file" />

  <label for="age">Input your age (years):</label>
  <input id="age" type="number" min="13" max="120" />

   <label for="referrer">How did you hear about us?</label>
<select id="referrer" name="referrer">
  <option value="">(select one)</option>
  <option value="1">freeCodeCamp News</option>
  <option value="2">freeCodeCamp YouTube Channel</option>
  <option value="3">freeCodeCamp Forum</option>
  <option value="4">Other</option>
</select>
</fieldset>
      <a href="https://www.freecodecamp.org/news/terms-of-service">Read our terms and conditions</a>

This challenge (Step 31) is only asking for creating a label element and a text inside of it.
And your code is probably a copy from a future step.
I suggest to hit the reset button and try to do what the Task asking for first.

If you copy+paste solutions there, you won´t learn how nesting in HTML works.