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>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>
        <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>
            <!-- <input id="loving" type="checkbox"> -->
            <!-- <input id="loving" type="checkbox"><label for="loving"> Loving </label> -->
            <!-- <input id="loving" type="checkbox"><label for="loving"> Loving</label> -->
            <input id="loving" type="checkbox">
            <label for="loving" Loving></label>
          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <button type="submit">Submit</button>

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) 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 have tried both things, but haven’t been successful, even the answers in the forum didn’t help - Can some one please help with this ? I tried many options such as -

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


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


Welcome, @aashay.dhawal !

You have the third time it says the word loving accidentally within the triangular brackets in the first attempt. In the second, just mind your spaces. They tend to stop the test from passing.

Solution redacted 
1 Like

Thanks for the quick response - I tried this -

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

and got a similar error :frowning: Can you please tell me what’s the error here -
You will need to add a new label element in which to nest the text Loving . Make sure it has both an opening and closing tag.

Did you try clicking Restart Step then copy and paste my attempt?

Nothing is calling out to me. If that doesn’t work, maybe refresh the page? It could be an unrelated error.

Thanks, I just removed the fluff - commented out code and it worked like a charm :slight_smile: Thanks for the support. I was struggling here :slight_smile:

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

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