How to pass the step 55?

can someone please help me to tell what is wrong with my code?

This is the command:
here’s another way to associate an input element’s text with the element itself. You can nest the text within a label element and add a for attribute with the same value as the input element’s id attribute.

Associate the text Loving with the checkbox by only nesting the text Loving in a label element and place it to the right side of the checkbox input element.

This is my code:

1 Like

Can you send (or copy and paste) the HTML code you made to pass the exercise? I am unable to help you if you don’t do so…

1 Like

I have made the change. I hope now it is visible…

Your code should look like this…
Mod Edit: SOLUTION REDACTED

The for attribute should be relative to your input id="loving", meaning both attributes should share the same name/value.

Also, the instructions said to nest the word Loving inside of the <label> element and put it on the right side of the input element you made.

Hope that helps… (Also, welcome to the forum :grin:)

sorry to bother again, but even after making the necessary changes that you guided me through, my code is still not passing the exercise.

the error message:

the code after the changes:

You got a typo on your </lable>, it should be </label>

thank you for identifying the type but still my code is not passing. The same error message is being displayed on the screen

Found the exercise, you should do this…

Mod Edit: SOLUTION REDACTED

1 Like

I have double checked my code with the one above, and I am honestly puzzled as to why my code is not passing the test.

Maybe remove the space in > Loving < to >Loving<… fCC can be strict with regards to the format.

nope… still the same error message. any more suggestions?

Try refreshing the page and do it again to see if it works…

I tested it with spaces and somehow it works…

wow! refreshing the page did work. Now I feel stupid for not refreshing it earlier :roll_eyes: Thank you so much for your help!

5 Likes

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.

same for me it didnt work

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