Learn HTML by Building a Cat Photo App - Step 56

I don’t know why it’s not working

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

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 56

Link to the challenge:

1 Like

i just passed using your solution. I would take a look and make sure there aren’t any typos and otherwise just reset that particular tutorial and submit the answer again.

6 Likes

I’ve tried, there is no space between Loving

Mod Edit: SOLUTION REMOVED

answer is this.
You need to put label element in new line and add for attribute with input id value.

6 Likes

well, theres the answer, which should probably be deleted.

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.

change your L to a small letter l in you ‘for’ attribute

This is the task at hand. "Associate the text Loving with the checkbox by nesting only the text Loving in a label element and giving it an appropriate for attribute. " Breaking it down it would be…

  1. A label element created nesting Loving.
  2. Give the label element a for attribute as instructed ( same value as the id used in input) , which now comes in the openig tag.
1 Like

i am in a jam

it keeps saying Test

Sorry, your code does not pass. You’re getting there.

Hint

The new label element does not have a for attribute. Check that there is a space after the opening tag’s name.

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