Loving
What’s wrong with my code and how can I do what is required of me in the below statement
How can I make the word Loving to be on top of the checkbox in this code
There’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 nesting only the text Loving in a label element and giving it an appropriate for attribute.
I tried nesting wrapping the word Loving in a label but the code won’t display on webpage.
Liyahluma Mahambehlala is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.