Step 55
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 only nesting the text Loving
in a label
element and place it to the right side of the checkbox input
element.
My code:
<input id="loving" type="checkbox"><label for="loving"> Loving</label>
(there is a space between “>” and “Loving”)
This new curriculum is worded insanely horribly. I have read five other posts on people being stuck on this step and the mods deleted the answer so I can’t figure out what the solution is. The wording seems to imply to capitalize Loving inside the <label for="Loving">
but that doesn’t work, and apparently it’s suppose to match the ID in the input, which is lower case so idk.