Build a Cat photo app HTML Step 56

Hello - What is wrong with the below code?

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

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:

  1. On a separate line type three back ticks.
  2. On a separate line paste your code.
  3. On the last line type three back ticks. Here is a single back tick `

Happy coding

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.