I´m getting this error again n again : You should give the label element a for attribute.
Your code so far
WARNING
The challenge seed code and/or your solution exceeded the maximum length we can port over from the challenge.
You will need to take an additional step here so the code you wrote presents in an easy to read format.
Please copy/paste all the editor code showing in the challenge from where you just linked.
Replace these two sentences with your copied code.
Please leave the ``` line above and the ``` line below,
because they allow your code to properly format in the post.
Your browser information:
User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36
Challenge: Learn Accessibility by Building a Quiz - Step 39
We will need to see your HTML in order to help you. To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key.
You added a new label. You want to use the one that is already there above the textarea. You are correct, you use the for attribute to link the label to the textarea. But you can’t just make up the value of the for attribute. Look at some of the other labels in your HTML. For example, the label with the text “Are you a frontend developer?” that is linked to the select. Why did you use “customer” as the value of the for attribute?
But you added every bit of HTML in this form so far yourself. Do you not remember why the for attribute on that label is set to “customer”. You’ve even done a whole course on creating a registration form (at least I’m assuming you did these in order). I’m sure the registration form course covered labels and for attributes as well.
I’m not trying to be mean here, but I think at this point you should be far enough along to be able to solve this, or at least use the googles to help you find the answer. Did you at least get rid of the extra label you added?
And did you add a for attribute to the original label? That’s what the hint is telling you to do.
Have you made any changes to the HTML since my last post? If so, please show us so we can see what you did. To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key.
Sir I actually added the “question” label but when i reset the page, it converts in customer i´dont know why and i came to know when you highlighted that.
You still have the same issue I pointed out in the beginning. You added a new label above the textarea. You don’t want to do that. You want to use the existing label that is already there, the one with the text that reads “Do you have any questions:” That is the label for the textarea. Your job is to link it to the textarea with a for attribute and to give it a name attribute.