There’s another way to associate an input element’s text with the element itself. You can nest the text within a label element and add a for attribute with the same value as the input element’s id attribute.
Associate the text Loving with the checkbox by nesting only the text Loving in a label element and giving it an appropriate for attribute.
MY code is:
Loving
Loving
i cannot for the life of me see why this is not right i have searched and verified the syntax and usage. i made sure the for statement references the correct id which is loving.
i am stuck here not able to move forward what am i missing.
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.
so i cant see any issue with that, and the text of the exercise does not say to remove the pre-existing Loving text that was from the previous exercise>
Step 56
There’s another way to associate an input element’s text with the element itself. You can nest the text within a label element and add a for attribute with the same value as the input element’s id attribute.
Associate the text Loving with the checkbox by nesting only the text Loving in a label element and giving it an appropriate for attribute.
However this exercise needs some work it is misleading and all the examples show the label element being used before the input element on line but the checking for this exercise is looking for a very specific layout that is counter to all of the information supplied else where: