Learn HTML by Building a Cat Photo App - Step 56

Tell us what’s happening:
Describe your issue in detail here. i have tried to wrap the text “Loving” in a “label” element but its still tell me code cannot pass

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <!-- TODO: Add link to cat photos -->
        <p>See more <a target="_blank" href="https://freecatphotoapp.com">cat photos</a> in our gallery.</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>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

          </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/114.0.0.0 Safari/537.36 OPR/100.0.0.0

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

Link to the challenge:

Hello!
You are very close. The text Loving is missing from between the opening and closing label elements.

Hope this helps. Happy coding!

no still dont get you where should i add the text “loving”

Where is the opening label element? You have it correctly with the for attribute. But, after that is the closing label element. Between the Loving should be found.

Example: < label for=…> Cat < /label> Cat is enclosed between element opening and closing.
Hope this helps.

like this
Mod edit: removed code

Please dont try to give the code solution for the challenges

Mod edit: removed code
i was stuck with this step for a long time and here is one of the solution.

Please do not try and give solutions for the challenges

Thanks

please i dont understand you

still dont get you point

What does your current code look like?

We can’t directly view your local version of the curriculum. That link goes to the current signed in user’s version of the challenge, complete with their own answers.

Can you please directly paste your code so far?

Also an example of how words can be wrapped by an element.

<caption>Some text</caption>

In this particular instance “Some text” is wrapped in a caption element.

Thats not your code its just a link to the challenge. Use the format button </> and paste your current code between the lines it gives you

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

You dont need the < here

You actually dont need either < or > here


<for="loving">

i removed it but still tells me wrong code

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

You have a lot of labels here, there should only be one. Thats the one around the word “Loving”

i have removed the labels elements but still cant pass the code
<input id="loving" type="checkbox" for="loving"><label> Loving </label>