Hello !
I don’t exactly understand your question so I’m going to take it as if you really don’t know where to place your ID attributes. The point of linking your label element with your input is, among others, to increase the click area, specifically for people who struggle clicking on small inputs or checkboxes, it is an accessibility matter. For the label to be linked to its element, it needs to have the for="" attribute, which will contain the ID of the input it is linked to. So what you need to do is to give an ID to the input for the profile-picture which seems to be the first input of the fieldset in the User Editable Region, and you the for="" attribute to link the label and the input together !
the part of the code which i still don’t understand :
Provide a bio:
and this is the step that given:
-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 the last step that given after i submit the answer and got it wrong. this is what it said:
The first input element should have an id of profile-picture any solution?
Yes, this is basically how the solution checker works.
The profile picture is the first element that should have an id of profile-picture, so if the ID doesn’t exist there, the checker won’t list the other issues until you solve the first one.
So add your id="profile-picture" to the file input, and for="profile-picture" to its label, and do so for the 3 other ones
so like in this code :
// label Provide a bio:
// textarea
// textarea
// label
where do i put all of these thing ( Link the applicable form elements and their label elements together.
//below is what the instruction says:
-Use profile-picture, age, referrer, and bio as values for the respective id attributes.)from the step they given me ? i’m new to code so i don’t know much about it and thank you in advance for your help
You should abd the following text as I’d value in all inputs except radio input, and for attribute with the following value to the all labels except radio label.
<label>Upload a profile picture: <input type="file" /></label>
To link its label to the input, you’re going to give an ID to the input, like so:
<input id="profile-picture" type="file" />
and give this id to the label, like this:
<label for="profile-picture"></label>
so we end with this:
<label for="profile-picture">Upload a profile picture: <input id="profile-picture" type="file" /></label>
We did it for the profile-picture, now you have to do it similar for the age, which is the line below, the referrer which is a little trickier but corresponds basically to everything between the two labels, and including the whole select part, and then the bio which is below.
Additionally, I saw you added an <input id="profile-picture"> between the label and the textarea, you don’t need that, the inputs are already created, all you need to do is add id="" and for="" in some places