instructions are unclear whether it should be input id=“name” or if it should be input id=“name-label” or is it asking for label id=“name-label”. I searched online and cannot find anything that says there should be a id applied to label but, that’s what I did with my code. It doesn’t seem to be a problem in the code but, it seems unnecessary. Is it normal to give a label and id?
You should have a form element with an id of survey-form
Inside the form element, you are required to enter your name in an input field that has an id of name and a type of text
Inside the form element, you are required to enter your email in an input field that has an id of email
and:
For the name, email, and number input fields, you can see corresponding label elements in the form, that describe the purpose of each field with the following ids: id="name-label", id="email-label", and `id=“number-label”
are not conflicting instructions. Should my id be name, email and number or name-label, email-label and number-label or is it asking me to assign an id to the label? If that is the case then when linking the label and input for each do I still do label for=“name” and input id=“name” or should I be using the name-label for each?
If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.
The Ask for Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.
I’m not asking about what code to use, I’m asking why these instructions are not conflicting. I haven’t found anything in searching google that indicates that a label should have it’s own id but, it seems like that is what it is asking. Maybe if the instructions were written more clearly, I wouldn’t be here asking this question.
Because the tests need something to “grab for” when testing for each element. The test can only test for elements it knows should exist, it does so by using the required ids.