Learn HTML by Building a Cat Photo App - Step 56

Tell us what’s happening:

I keep getting messages that say "only the word ‘loving’ should be wrapped in the label element, but when I do that, it then says that the type=“checkbox” needs to also be included. I keep going in circles trying different arrangements but nothing is working.

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 56


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

You should wrap the Text loving, not the ID in label element and give that label element a proper for attribute.

mod edit: code removed

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

1 Like