Hello - What is wrong with the below code?
<label for="loving"> Loving </label>
<input id="loving" type="checkbox">
Hello - What is wrong with the below code?
<label for="loving"> Loving </label>
<input id="loving" type="checkbox">
Hello and welcome to the forum!
I do not see any code; only the text Loving.
What I can explain for this step is that the label tags should only have the text Loving between them, and the input element should be at the beginning of the code.
Example
<input element><label> Text</label>
Hope this helps.
Welcome to the forum @contactveda
I edited your code for readability.
The input
element needs to go before the label
element.
Separate the two elements with a single space.
Happy coding
For next time, so the forum can assist, please post your full code.
Use the following method to post code to the forum:
Happy coding
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.