Cat Photo App - Step 56

Step 56

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.

   <input id="loving" type="checkbox"> Loving

Help me, I’m stuck on what to do.

Welcome to our community!
The ‘for’ attribute in the ‘label’ element and the id attribute in the ‘input’ element has the same value.

I’m sorry I don’t understand.
Also, I’m not sure what exactly step 56 wants me to do. :smiling_face_with_tear:

This is the first part of what you need to do:

  • nest the text Loving in a label

Then go back and read the exercise for the next part of what to do.

1 Like

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