Step 47 Cat Photo App: Assigning a name attribute to the radio buttons so they both cant be selected

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

  **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>
      <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">
        <label>
          <input id="indoor" type="radio" name="indoor-outdoor"> Indoor

        </label>

        <label>
          <input id="outdoor" type="radio" name="indoor-outdoor"> Outdoor
          
        </label>
        <input type="text" name="catphotourl" placeholder="cat photo URL" required>
        <button type="submit">Submit</button>
      </form>
    </section>
  </main>
</body>
</html>

Challenge: Step 47

Error code says the radio buttons must be contained within a label element.

HI @sw.hoonigan !

Make sure to fill this part out so we know how to assist you.
Also, I edited your code to include the challenge link.

As for the challenge, I would suggest resetting the lesson because I think your spacing for the label and inputs is messing with the tests.

Once you reset it, make sure to just add the name attribute with indoor-outdoor and do nothing else.
Once I do that, it passes

Hope that helps!

You should not change the inner text of the Indoor label. how do I go about it? my efforts are not working. Thanks.

Samkotey21

HI @Samkotey21 !
If you have an issue with a challenge, it is best to open up a new topic with your code and challenge link so people can assist you there.

Thanks for your suggestion, but I am not as organized as I need to be. I struggle to get back to where I left off and it is driving me crazy.

Samson.