Writing Code For Label Seems To Be My Weakness

Here is what I mean, I am asked to do the following: Associate the text Loving with the checkbox by nesting only the text Loving in a label element and giving it an appropriate for attribute. Here is a copy of the code I wrote:
<label for="loving">Loving</label> <input id="loving" type="checkbox"/>
Here is the message I get: Sorry, your code does not pass. Keep trying.
The text Loving should be wrapped in a label element.
Where did I go wrong?
Thanks in advance, for your help.

You didn’t tell us which step this is for, so I’m going off of memory here, but I believe the problem is that you moved the location of the text “Loving”. Wasn’t it originally placed after the input?

Actually, the challenge is 56 and there was nothing in any of the fields. I just added the label code to this:

 <input id="loving" type="checkbox"/> 

The word Loving should already be there. Please post a link to the Step

This is what I see for the default HTML in that step:

<input id="loving" type="checkbox"> Loving

You don’t want to move anything. You just want to wrap the text “Loving” in a label element.

Do you mean like this?

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

Don’t ask me. Ask the tests :slightly_smiling_face: