Step 55 Error=?

Stuck on Question 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 Suggested Code is:
<input id="loving" type="checkbox" value="loving"><label for=" loving"> Loving</label>

But its not accepting it. Where am I wrong??

Hey! you should copy and paste your code here so its easier for others to help you!

I solved it myself thanks

1 Like

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.