Learn HTML by Building a Cat Photo App - Step 56

Tell us what’s happening:

Hello, can you help me, the code submission is showing the error: “The text Loving should be wrapped in a label element.” :brazil: thanks :blush:

<legend>What's your cat's personality?</legend>
            <label for="loving"> Loving
              <input id="loving" type="checkbox">
            </label>

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 56

1 Like

Hi there and welcome to our community!

You start with this line of code:

<input id="loving" type="checkbox"> Loving

…and the instructions are:

[nest] only the text Loving in a label element and [give] it an appropriate for attribute.

You have also nested the input element inside the label element:

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

As you’ll see from the starting code for this step, the text ‘Loving’ should be to the right of the input element. You should wrap only this text in the label element. You should end up with an input element, a space and then a label element which is wrapped around the text.

3 Likes

Thank you very much, I did it! :star_struck:

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