Learn HTML by Building a Cat Photo App - Step 56

label element wir attribute for and the text Loving is wrapped in:
Step 56 - What do I wrong?

Other ForumItems were not helpful.

Your code so far

        <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>
        <h2>Cat Lists</h2>
        <h3>Things cats love:</h3>
          <li>cat nip</li>
          <li>laser pointers</li>
          <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>  
        <h3>Top 3 things cats hate:</h3>
          <li>flea treatment</li>
          <li>other cats</li>
          <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>  
        <h2>Cat Form</h2>
        <form action="https://freecatphotoapp.com/submit-cat-photo">
            <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>
            <legend>What's your cat's personality?</legend>
      <label><input id="loving" type="checkbox"> Loving</label>

<!-- User Editable Region -->

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

<!-- User Editable Region -->

          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <button type="submit">Submit</button>

Your browser information:

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

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

Link to the challenge:

Welcome to our community!

The order of the html elements is different:

<input> <label>Word</label>

In the opening <label> tag you should add the ‘for’ attribute set to the value of “loving”.

This is guidance.

Thank you for your responce.
But I already checked yours too. It didn’t work so


Post your code here. Use the </> button in your editor to format code properly. Post the entire code, not a segment of it.

1 Like

its not working for me too

My entire code is to find at the beginning on the top, till step 56 was everything ok.
Can anybody write HOW is it right? The whole 56 - line? There are a lot of the same topics but without the right code … I am really despairing now :cold_sweat: :disappointed_relieved:

Have you made any changes to the above code because the directions say

nesting only the text Loving in a label element and giving it an appropriate for attribute.

You have way more than just the text Loving in your label


In the future, please create your own topic when you have specific questions about your own challenge code. Only respond to another thread when you want to provide help to the original poster of the other thread or have follow up questions concerning other replies given to the original poster.

The easiest way to create a topic for help with your own solution is to click the Ask for Help button located on each challenge. This will automatically import your code in a readable format and pull in the challenge url while still allowing you to ask any question about the challenge or your code.

Thank you.

Don’t post the screenshot. Give us the entire html and css code here. Use the </> button to format the code properly. Probably you deleted a part of the code above or below the code line in question. Anyway, without the fully working code, posted here, we cannot help you.

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