I’m doing “debug a donation form” and I feel the test is contradicting itself. 16. You should associate every input element with a label element using the for and is attributes. There are 5 inputs, yet 8. You should have exactly 4 label elements in your form. How can I only have 4 labels and there are 5 inputs and each input has to have a label, it doesn’t make sense and it won’t close. What should I do?
Lesson URL (copy - paste from your browser’s address bar)
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 Help button located on the challenge.
The 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.
This issue is that you are not associating the label element with the input element correctly.
Please review this user story again, especially the last part.
You should associate each label element with its corresponding input element using the for attribute on the label and a matching id attribute on the input.
Where should the id attribute be placed? Should the for attribute be associated with the input’s type attribute or its id attribute?