Tell us what’s happening:
How can I Associate the text Loving with the checkbox by only nesting the text Loving in a label element and placing it on the right side of the checkbox input element? (thanks for noticing my question)
Ok first, nesting is surrounding something, usually text or another element with an element, like so :
<div><span>I am a span nested in a div</span></div>
Now what you want to do AFTER you have nested “Loving” in a label element, is add a for attribute that matches, EXACTLY, the input’s id attribute. And that’s it! Any questions?
Edit: A lil more info, the for attribute “looks” for the id in an html document that matches it and then basically tells the browser “Hey! This is for me and me alone.”
“This is not an argument this is me asking you to correct my mind misconception”
because if ex.
the for attribute “looks” = explained to the browser“Hey! This is for me and me alone.”
(The targeting action is only for “Look” it’s fine just indenting the ex. for attribute to the input on label attribute)