Responsive web designing cat phot app problem 56

        <input id="loving" type="checkbox"> Loving
        <label for="loving"> Loving </label>

I typed this but why is it showing

Test: Sorry, your code does not pass. Try again.

Hint: There should be a space between your checkbox and your new label element.

this what am I suppossed to do

this is problem 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 nesting only the text Loving in a label element and giving it an appropriate for attribute.

Hey I passed it :partying_face:

Just remove that Loving word near the input tag when that problem is give and all solved:::: :cowboy_hat_face:

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