Building a Registration Form - Step 38

Tell us what’s happening:
Describe your issue in detail here.

Your code so far

Nothing is passing. It tells me to add for attribute and id attribute. I do that and still doesn’t pass.

Help please!!

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

The for attributes go on the label, not the input. Look at how you did it in the first fieldset for an example.

And you need to add for attributes for all of the labels, not just profile picture.

To create an HTML form, we will use the HTML element. It starts with the tag and ends with the tag. We can add the input elements within the form tags for taking user input. form elements, such as text box, textarea, etc

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