Learn HTML by Building a Cat Photo App - Step 56

I’m trying to fix this bug but I can’t find where is the mistake. As per the error I have already add the opening and closing tag.

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

The error message :- Sorry, your code does not pass. Don’t give up.

You will need to add a new label element in which to nest the text Loving. Make sure it has both an opening and closing tag.

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/118.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 56

Hey @zainabtaraj
You have just mixed up you code
the input needs to be nested inside the label

<label><input >text</label>

If your label is separate from the input then you dont need to provide a text for it,in which case you need to remove this text here

Keep up the good work!!

2 Likes

Hello @zainabtaraj !
To add to the previous guidance.
I noticed a typo in the closing label tag.

Keep up the good progress!

thank you for share with us/.

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