<fieldset>
<label>Upload a profile picture: <input type="file"id="profile-picture" /></label>
<label>Input your age (years): <input type="number"id="age" min="13" max="120" /></label>
<label>How did you hear about us? <input id="referrer" /></label>
<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:<input id="bio"
<textarea></textarea>
</label>
</fieldset>
Please provide a link to the challenge you are working on so we can best help you.
But at first glance, it looks like you didn’t close out your input tag here correctly
so I closed the bio Provide a bio:
it is giving me this error
The select
element should have an id
of referrer
.
<label>Provide a bio:<input id="bio" />
It looks like you put the id in the wrong place
You placed the id in the input here
but the error message says the select element which is this
<label>How did you hear about us? <input id="referrer" /></label>
please see my earlier comment about the referrer id
I do not understand what is the selected element ?
this is the select element
Thanks for the help I finally figured it out with your help!
1 Like
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.