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.
When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
I can explain the instruction to you. So you need to add a label element with a for attribute that nests the text Loving
So after your input element, before your text Loving add your label opening tag and for attribute. Then after the text Loving add your label element closing tag.
…what way? I’m still trying to figure this out, and can’t find an answer. NOTHING I try with this “for” attribute works. I’ve tried every possible configuration AND researched it.
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.