I'm having trouble with Step 56

Step 56 reads:

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"> Loving

i’ve tried it 30 something different ways. I cant figure this out. Can someone help? Thank you.

-Favian

I don’t see a label element?

Please provide a link to the Step. The Ask for Help button does this for you automatically

can you explain how i add the link so I can show you? thank you.

Just copy the page URL from the browser and paste it in your reply.

You need to add a label element around the word Loving…

Here’s my code:

Loving

I’ve tried wrapping it in a label element. I added the for attribute and I’m still not getting it.

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