I don’t seem to be able to spot what the issue is with the label.
@Louizz7 Make sure the
for="Loving" has the same case as
id="loving". They have different casing, that’s why it is failing.
If this solves your problem, please mark it as the correct one and please leave a heart.
Please post actual code instead of a picture of code. We can’t run and test a picture. Thanks
It didn’t solve the problem.
<label for="Loving"><input id="Loving" type="checkbox"> Loving</label>
That’s the code.
You shouldn’t change the id attribute, only add a for attribute
I don’t think that’s the case. Cause someone else said this and It didn’t change.
Can you rewrite in full what you think the code should be
I won’t write the answers for you. That’s against the rules.
I’m saying that your change is backwards… You capitalized when both need to be lowercase.
If what you are saying is that, the text loving should all be the case, I already did that and I didn’t succeed
What is your code with everything lowercase?
I only tried that out to see if that could be the problem which it clearly wasn't.
This is my code.
<label for="loving"><input id="loving" type="checkbox"> Loving</label>
This is the error message : " The text
Loving should no longer be located directly to the right of your checkbox. It should be wrapped in a
label element. Make sure there is a space between the two elements."
Getting closer. The entire label needs to be to the right of the input.
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.
<input id="loving" type="checkbox"> <label>Loving</label>
Why did you remove the for attribute?
Passed the test , thanks. Pressed enter key to next line
im still stuck on this one
If you have a question about a specific challenge as it relates to your written code for that challenge, just click the Ask for Help button located on the challenge. It 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.
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.