Learn-html-by-building-a-cat-photo-app - Step 56

Can someone help me here what is the problem:
this is my code:

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

Thanks in advance.

6 Likes

Hello!

Your code is so close to correct. However, the label tags should come after the input element. And, there was not any need to make new text Loving.

The step wants us to nest the Loving that is before the checkbox.

Suggestion: Reset the step and do the excellent nesting job that you have done now. Only do it around the existing Loving text when you reset it.

Great progress and attempt at this step.

Happy coding!

5 Likes

so, step by step: I erased new text Loving.
Haha, from this point, dont know where to go to anymore…
now the code looks like this :slightly_smiling_face:

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

Its best to use the Ask for Help button so your code and a link to the Step is posted!

There is nothing inside of this label! It should instead be around the word ‘Loving’.

1 Like

The trick is the space between the check box and the label.

3 Likes

Thank you so much, you helped me a lot, I got it now and the code passes.
Yes, it is a bit confusing and I try my best.
Thank you once again. :slight_smile:

1 Like

Hey Zita, if you didnt found solution yet, here it comes:

“Associate the text Loving with the checkbox by nesting only the text Loving in a label element and giving it an appropriate for attribute.”

so it means to put label right from tag, like this:

Mod Edit: SOLUTION REMOVED

i hope it will help you, see you! :wink: :innocent:

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

Loving

Problem is you have to use label after input

1 Like

This is frustrating, I feel like I’ve tried all possible combinations, but cannot get it correct. what am i doing wrong?

Loving

it looks like my code is blocked from display above?

4 Likes

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 Ask for Help button located on the challenge (it looks like a question mark). This button only appears if you have tried to submit an answer at least three times.

The Ask for 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.