Learn HTML by Building a Cat Photo App - Step 56

Tell us what’s happening:

the error shows that the text ‘Loving’ should be wrapped in a ‘label’ element but my code is similarly as follows:

Loving

Your code so far

<label for="loving">Loving</label>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 56

You have the Loving label twice, you accidentally duplicated it.

Label should also come after the input, look at the original code:

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

“Loving” is after the input.

Try to reset and try again.

Hello there, try this.

code removed by moderator

To me it seems you just did the opposite. I hope it helps, thanks.

hey @mailforworkon

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

Uh, I forgot. But I will try to remember this. The problem I face while answering is, it’s just a short code without the initial instruction add the error prompt. I hope i’m able to make my point clear. Thanks

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