Learn HTML by Building a Cat Photo App - Step 56

Please help…What i did wrong?

<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <section>
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a>.</p>
      <a href="https://freecatphotoapp.com"><img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/relaxing-cat.jpg" alt="A cute orange cat lying on its back."></a>
    </section>
    <section>
      <h2>Cat Lists</h2>
      <h3>Things cats love:</h3>
      <ul>
        <li>cat nip</li>
        <li>laser pointers</li>
        <li>lasagna</li>
      </ul>
      <figure>
        <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/lasagna.jpg" alt="A slice of lasagna on a plate.">
        <figcaption>Cats <em>love</em> lasagna.</figcaption>  
      </figure>
      <h3>Top 3 things cats hate:</h3>
      <ol>
        <li>flea treatment</li>
        <li>thunder</li>
        <li>other cats</li>
      </ol>
      <figure>
        <img src="https://cdn.freecodecamp.org/curriculum/cat-photo-app/cats.jpg" alt="Five cats looking around a field.">
        <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
      </figure>
    </section>
    <section>
      <h2>Cat Form</h2>
      <form action="https://freecatphotoapp.com/submit-cat-photo">
        <fieldset>
          <legend>Is your cat an indoor or outdoor cat?</legend>
          <label><input id="indoor" type="radio" name="indoor-outdoor" value="indoor"> Indoor</label>
          <label><input id="outdoor" type="radio" name="indoor-outdoor" value="outdoor"> Outdoor</label>
        </fieldset>
        <fieldset>
          <legend>What's your cat's personality?</legend>
          <input id="loving" type="checkbox">
          <lebel for="loving">Loving</lebel>
        </fieldset>
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
      </form>
    </section>
  </main>
</body>
</html>
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36

Challenge: Learn HTML by Building a Cat Photo App - Step 56

Link to the challenge:

initially you are given this code:
<input id="loving" type="checkbox"> Loving

(please click on Restart Step to get it back to this point)

You are given the following instructions:

Associate the text Loving with the checkbox by only nesting the text Loving in a label element and place it to the right side of the checkbox input element.

To help you move forward I will rewrite these into steps. (that way if you follow them and get stuck, we can easily see where things went wrong)
The order of the steps & details will be different than the order of the instruction.

1- only nest[…] the text Loving in a label element … to the right side of the checkbox
2- Associate the text Loving with the checkbox
a- create a for attribute inside the new label element
b- assign the value of the input’s id to new for attribute

Recall that a label element is simply this:
<label> Something</label>
And the for attributes are always added to the opening tag of the label.

Hopefully this gives you what you needed to know for this step.

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

I didn’t understand…I tried to do as you wrote, but this is also wrong … Or did I misunderstand? May you please just post the answer?)

you didn’t misunderstand.
But you need to be more careful with spelling.
Check the tags… as they contain “lebel” instead of “label”

I’ve been unable to complete this step for two days now…

please correct your spelling.
“label” not “lebel”

1 Like

Oh my god… AHAHAHA, I just noticed it on the second day… Thank you)