Instructions:
Associate the text Loving with the checkbox by nesting only the text Loving in a label element and giving it an appropriate for attribute.
input id=“loving” type=“checkbox”> Loving
Tried multiple versions of what’s below but I keep getting rejections. I had to remove < from in front of the inputs because it kept blocking them out in this post. But those were there.
input id=“loving” type=“checkbox”> input for=“loving”>Loving
input id=“loving” type=“checkbox”>Loving><input for=“checkbox”
Rejection:
“The new label element does not have a for attribute. Check that there is a space after the opening tag’s name.”
Please use the Help that appears after three unsuccessful attempts on any step?
This will allow you to submit both the current code for the step and your question. As well, it allows the community to provide accurate guidance as the code provides a view into the problem you are facing.
Thank you for checking it. Not sure where the “label” went ?? It was there when I submitted it. Let me try again to show my work. Based on what’s below it keeps giving rejections regarding the “for”. It keeps redacting my comment when it has < in front of the input. So I had to take them out but those are there when I submit it.
To display your code in here you need to wrap it in triple back ticks. On a line by itself type three back ticks. Then on the first line below the three back ticks paste in your code. Then below your code on a new line type three more back ticks. The back tick on my keyboard is in the upper left just above the Tab key and below the Esc key. You may also be able to use Ctrl+e to automatically give you the triple back ticks while you are typing in the this editor and the cursor is on a line by itself. Alternatively, with the cursor on a line by itself, you can use the </> button above the editor to add the triple back ticks.