Help with HTML Step 51

Hello,

I’m not sure what I’m doing wrong in my code. The instructions ask to add another fieldset element directly below the current fieldset element.

  **Your code so far**
<html>
<body>
  <h1>CatPhotoApp</h1>
  <main>
    <section>
      <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>
    </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>
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
      </form>
    </section>
  </main>
</body>
</html>

Challenge: Step 51

Link to the challenge:

Here you are nesting one fieldset inside of another. You want to add the fieldset below (or after) the initial fieldset. A fieldset is composed of both an opening and closing tag, so to place another fieldset after the first one means you place the new one after the closing tag.

Also, it looks like you have added even another fieldset around the input and button at the bottom of the form. I don’t think the instructions asked you to do this.

I would restart the step to get the original HTML back and then only add a blank fieldset element after the first one and before the input and button at the bottom.

1 Like

Hello ,
I don’t understand what you mean by " I would restart the step to get the original HTML back and then only add a blank fieldset element after the first one and before the input and button at the bottom."
Do I add the fieldset after the previously closed fieldset?

Yes, add the new fieldset after the one that is already there.

Where would the closing fieldset go?

I’m not sure I understand your question. A fieldset element is composed of an opening <fieldset> tag and a closing </fieldset> tag, just like the one that is already there has. You just need to add another fieldset element after the one that is already there. You don’t need to put anything in it.

1 Like

Thank you for your patience. I think I got it!

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