Learn HTML by Building a Cat Photo App - Step 50

Tell us what’s happening:

On this step, it keep saying that I have entered the code incorrectly and displays this message: "Both radio buttons should still be located between the opening and closing label element tags.

Indoor Outdoor

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>

<!-- User Editable Region -->

        <form action="https://freecatphotoapp.com/submit-cat-photo>
<fieldset>
    <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>


<!-- User Editable Region -->

          <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/127.0.0.0 Safari/537.36

Challenge Information:

Learn HTML by Building a Cat Photo App - Step 50

Look at the colors of the syntax in your post. You have a syntax bug you need to fix.

What do you mean, is the order of code wrong?

Order? I said nothing about order.

Do you not see the colors of the code in your post?

Oh I see, so how do fix the colours of the code?

The colors indicate you made a syntax error, like I said. Look there for a bug in your code.

1 Like

Question: " To improve accessibility of the image you added, add an alt attribute with the text:

Five cats looking around a field.",

Answer:
Five cats looking around a field.

" ,

Result: Sorry, your code does not pass. You’re getting there.

Your figure element should have a closing tag. Closing tags have a / just after the < character.

Hi there!

Welcome to the forum. Create your own topic to the challenge step, using Help button. That’s appear when you try to submit the wrong code more than Three time.

1 Like