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**
      <h2>Cat Photos</h2>
      <!-- TODO: Add link to cat photos -->
      <p>Click here to view more <a target="_blank" href="">cat photos</a>.</p>
      <a href=""><img src="" alt="A cute orange cat lying on its back."></a>
      <h2>Cat Lists</h2>
      <h3>Things cats love:</h3>
        <li>cat nip</li>
        <li>laser pointers</li>
        <img src="" alt="A slice of lasagna on a plate.">
        <figcaption>Cats <em>love</em> lasagna.</figcaption>  
      <h3>Top 3 things cats hate:</h3>
        <li>flea treatment</li>
        <li>other cats</li>
        <img src="" alt="Five cats looking around a field.">
        <figcaption>Cats <strong>hate</strong> other cats.</figcaption>  
      <h2>Cat Form</h2>
      <form action="">
          <input id="indoor" type="radio" name="indoor-outdoor"> Indoor


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

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.


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.


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