Tell us what’s happening:
I can’t understand why the code doesn’t work. I can’t understand the supposed solution here in the forum. My code:
<label for="loving"></label>
<input id="loving" type="checkbox"> Loving
I can’t understand why the code doesn’t work. I can’t understand the supposed solution here in the forum. My code:
<label for="loving"></label>
<input id="loving" type="checkbox"> Loving
Hey, welcome to the forum.
“Associate the text Loving
with the checkbox by nesting only the text Loving
in a label
element”
You didn’t wrap the text Loving
in the label
element. You added the label
element before the input
. You need to add it around the text Loving
.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.