I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.
You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.
Please click on Restart Step button to reset everything back to start.
You will be shown this line of code: <input id="loving" type="checkbox"> Loving
And you are being asked to associate the input element with a new label element which is yet to be created.
So here are the steps to do this. Please follow them carefully (respecting the syntax rules of HTML such as where to put angled brackets and attributes etc)
1- create a label element around the word Loving
this means an opening tag is on the left of the word Loving and a closing tag is on the right of the word Loving. Do not modify the input element when doing this step.
2- add a for attribute to the new label you made
this means add a valid attribute called for to the opening tag for label.
3- assign the new for attribute a value which is equal and identical to the value of the id attribute that is currently inside the input tag
This completes the association. The browser will see the for attribute inside the label and identify that it belongs to the input field next to it because they share the same value (ie. label’s for value = input’s id value)
actually that is not the only thing wrong.
If it passed, then it did so invalidly.
I hope you can take the time to understand the correct format (you will need it again later)
When I put an <input
I don’t put the tag > at the end and I was told that was wrong and it’s passing anyway ?
I was told it should be by another developer
i dont know or understand why you wouldnt put “>” to close that tag?! because "if you dont do that it’s a WRONG SYNTAX (excuse my upper case)
if you’re saying "when you dont use “>” in your code and it is still passing, then please share your code because thats not how its supposed to be… thanks