Survey Form - Build a Survey Form

Why it keeps saying to me You should give the textarea element opening and closing tags? :frowning:

<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 for="bio" id="bio"></textarea>
        </label>     
    </fieldset>```

Hello!
Please can you paste the link to your code here.

It seems like you have the correct <textarea> element in your code. However, the error message you’re encountering might be due to the fact that you’ve used the attribute for instead of id in the <textarea> element.

Try updating the <textarea> element like this:

<textarea id="bio"></textarea>

This should resolve the error message, as the id attribute is used to uniquely identify the <textarea> element.

i just tried with the line that you’ve sent me, and now it says again: You should give the textarea element opening and closing tags. :(( it just doesn’t work in any way that i put it xdd

Hello! Here you are:

<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 id="bio"></textarea>        
</label>     
    </fieldset>

Remove id attribute and value from textarea and try to check your code.
@everything.132005

Please post all of your HTML.

thank you very much, it worked!

1 Like

Your welcome. Keep it up, happy Coding!

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