Learn HTML by Building a Cat Photo App - Step 54

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

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>

<!-- User Editable Region -->

          <legend> What's your cat's personality? 
           <input id="loving" type="checkbox"> <label for="Loving">loving</label>
          </legend>
            

<!-- 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/109.0.0.0 Safari/537.36

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

Link to the challenge:

:balloon: Hi, welcome to the forum!
We see you have posted some code but did you have a question?

(You have not filled out the “Tell us what’s happening:” field above)

step 54 simply ask you to type this code:

Mod edit: solution redacted 

I keep getting the same error-You should only have added one input element for your checkbox. Remove any extras. What I’m I missing here?

What's your cat's personality? loving

Hi @koem865 ,
No need of wrapping Loving part with <label>...</label> elements.
Just place Loving after the checkbox’s input element, with extra space.

Hey koem865,
In line 44 of your index.html file you should perform the step 54 as stated. Below the legend tag element, add an input element with the attribute type checkbox and the value of Loving.

Here’s an example :
Mod edit: solution redacted
Hope it helped you,
Happy coding ! :slight_smile:

Thank you, although the error is still the same despite trying all option including with and without nesting “Loving”

Hello koem,
Try to reset the step and repeat the correct code I gave you, it should work.
Hoping it helps,
Happy coding ! :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.

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.

Hey koem,
Your error is in this piece of your code. The step asks you to add the input element below the legend element not inside the legend element.
Also they ask you not to wrap the input element with a label for now, you can delete the label tag element. Don’t forget the extraspace between the input element and Loving value.
Hope it helped you,
Happy Coding ! :slight_smile:

Thank you so much. I really appreciate your help. :pray:

No problem, your welcome.
Happy coding ! :slight_smile:

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