Learn HTML by Building a Cat Photo App - Step 56

Hi guys,

i‘m having trouble with Step 56. I‘ve tried multiple codes and versions, as well as used codes marked as solutions from other posts but i can‘t seem to get it right.

It always gets me the answer, that the loving parts needs to be right next to the checkbox. I don‘t quite understand how.

can anyone help me out? Thanks in advance.

Your code so far

<html>
  <body>
    <main>
      <h1>CatPhotoApp</h1>
      <section>
        <h2>Cat Photos</h2>
        <p>Everyone loves <a href="https://cdn.freecodecamp.org/curriculum/cat-photo-app/running-cats.jpg">cute cats</a> online!</p>
        <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>
            <input type="checkbox" id="loving"> <label for="loving">Loving</label>
          </fieldset>
          <input type="text" name="catphotourl" placeholder="cat photo URL" required>
          <button type="submit">Submit</button>
        </form>
      </section>
    </main>
  </body>
</html>

Your mobile information:

iPhone - iOS18.0.1

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

Link to the challenge:

Did the instructions ask you to add a label element with a for attribute?

I think i‘ve added them when i searched for an solution online. I don‘t think that they were in the instructions.

It’s best to focus on the question asked. If you weren’t asked to add it then it should be removed.

Can you remove the answers? We are supposed to guide not give out the answer.

ha okej. sorry . did not know

1 Like

could you like dm me the answer with some kind of explanation? i‘m stuck on this level since 5 days

Hi there!
Always follow the instructions carefully.
In this step you have to add input without any label tag.
Also add the Loving value.
Example:

<input type="exampletype"> Example value

Make sure you have a space here (before the value) as requested

Also I would recommend to reset the step and try again

1 Like