Learn HTML by Building a Cat Photo App - Step 51

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">

<!-- User Editable Region -->

          <fieldset>
            <legend>Is your cat an indoor or outdoor cat?</lengend>
            <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/112.0.0.0 Safari/537.36

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

Link to the challenge:

Please Tell us what’s happening in your own words.

Learning to describe problems is hard, but it is an important part of learning how to code.

Also, the more you say, the more we can help!

I was supposed to be making a title in this text right here:

Is your cat an indoor or outdoor cat?

During the middle of < legend> & </legend (I added this btw > , but it erased from the text)

I did that but for some reason it’s not working, I’ve tried looking it over & over even tried YouTube there’s nothing wrong with it and it keeps on saying error.

Thanks for that

Your code is dead on, except for just a tiny little mistake here. I am sure you will notice almost immediately

<legend>Is your cat an indoor or outdoor cat?</lengend>

OH ! I didn’t notice thank you mate. :sob:

Can I reply to this message if it doesn’t work the code?

Absolutely. That should take care of it, but if for some reason it doesnt then just let me know

Ok so for some reason it doesn’t work, I feel like the site is bugged. So it says this from the error message:

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

Which as you can see from my code it did have ALL of those.

So there are some situations that can cause a challenge to fail, but before I go through those steps can you share your new code with me. You can use the format button in the reply that looks like </>. Just copy all your code and then paste all the code between the lines it gives you. I copied your original code, and made that change and it passes for me. But let me check over your new code real quick and see if there could be another issue

<>Is your cat an indoor or outdoor cat?</>

This was the new code I wrote and it kept giving errors

You got rid of the “legend” attribute. The only thing wrong in the line of code I showed you was that you misspelled the word legend on the closing tag. You need to add the words legend back inside the opening and closing tags

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