HTML - Building a Registration Form - Step 39

Hi, i’m on step 39 and i believe my code is right, but i can’t move forward because it keeps giving me the same error: " The second input element should have an id of age .

This is the prompt "Link the applicable form elements and their label elements together.

Use profile-picture, age, referrer, and bio as values for the respective id attributes." and this is my code so far:

        <label for='profile-picture'><input id='profile-picture'>Upload a profile picture: <input type="file" /></label>
        <label for='age'>Input your age (years): <input type="number" min="13" max="120" id='age'/></label>
        <label for='referrer'>How did you hear about us? <input id='referrer'>
          <select>
            <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>
        <label for='bio'>Provide a bio: <input id='bio'>
          <textarea></textarea>
        </label>
      </fieldset>```

What am I not seeing? I've also tried this on chrome and safari but i keep getting the same error. Thanks so much!

You have to put the id attribute inside the already existed input. Don’t create a new input.

The same with select and textarea elements. Put the id inside the opening tags <select>, <textarea>. Don’t create a new input

1 Like

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