Learn HTML by Building a Cat Photo App - Step 56

Tell us what’s happening:
Describe your issue in detail here.

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>

<!-- User Editable Region -->

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

<!-- 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:

I can see there is a bit of confusion on how to nest the Loving between the label element opening and closing tags.
Below I have quoted some of your previous code to try to help you see that you have done it before, so I know you will be able to do it, again. :slight_smile:

I suggest resetting the step, as there is also some added text that is not necessary.

Please do not change anything in the provided code at the beginning of the step.

Only add the for attribute in the label element to match the id in the output. The name should be identical. And, I see you have the id correct in the code, but the for attribute does not have the same value.

Please try again, and use your previous code to see how to nest the text Loving within the label element while leaving the input element in place.

I hope this helps you.

Happy coding! :slight_smile:

Hi am having the same problem and i still cannot understand how to do this steps, please clarify a bit more

Hello @Shakesman !
Could you please create your own post using the help button on the step. It appears after three unsuccessful attempts at any step in Responsive Web Design.

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