Hey there!, I'm currently taking up responsive web design course.. but I'm stock at step 39 of Registration Form and the quiz question is

Link the applicable form elements and their label elements together.

Use profile-picture, age, referrer, and bio as values for the respective id attributes.

here’s my code


 <label id="bio">Provide a bio:
          <textarea>
          </textarea>
          profile-picture: <input type="text" id="profile-picture">
          age: <input type="text" id="age">
          referrer: <input type="text" id="referrer">
        </label>

what’s wrong in my code? … thanks

Hi there and welcome to our community!

For future reference, if you need help with a particular challenge, it’s best to hit the Help button, which appears after you have submitted incorrect code three times.
This will create a forum post which automatically includes your full code, a direct link to the challenge and an opportunity for you to describe your issue in detail.

I have edited your post to include the challenge link and to ensure that your code displays correctly on the forum.

The starting code for this step:

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

Your code has become rather muddled, so it would be easiest for you to hit the Reset button and try this step again. As you have done in previous steps, you should link each pair of label and input elements above, using the appropriate for and id attributes, as specified in the challenge instructions.

You shouldn’t otherwise rearrange or modify the code above, only add the specified attributes, to four different pairs of elements.

2 Likes

thanks for your advice… this my first time to create post in this forum… I’m totally newbie here.

1 Like

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