Learn HTML by Building a Cat Photo App - Step 58 HELP

Tell us what’s happening:

Hello! I’m stuck in this step. I’d appreciate the help

These are the instructions:
“Associate the text ‘Loving’ with the checkbox by nesting only the text ‘Loving’ in a ‘label’ element and giving it an appropriate ‘for’ attribute.”

This is the hint:
You should add a new label element after the checkbox element. Make sure it has both an opening and closing tag.

I can’t think of anything else!!

Your code so far

Loving


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


Your browser information:

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

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 58

Welcome to the forum @aixaintj

Please remove the white space before the text Loving
Then, add a single space between the input and label element.

Happy coding

Hello!
The hint still says the same.

This is my code:
<input id="loving" type="checkbox"> <label for="loving">Loving</label

Thanks!

The closing label tag is missing an angular bracket at the end.

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

Still doesn’t pass :frowning:

Please post your full code.

you can use
code removed by moderator

hi @sejal.pradhan22

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.

Were you able to figure it out?

hi @bushrori if you need help please open your own topic

If you have a question about a specific challenge as it relates to your written code for that challenge and need some help, click the Help button located on the challenge. This button only appears if you have tried to submit an answer at least three times.

The Help button will create a new topic with all code you have written and include a link to the challenge also. You will still be able to ask any questions in the post before submitting it to the forum.

Thank you.

1 Like