Can you help please

can you help please, im stuck again regarding the radio button, i did everything and it seems perfect to me but i couldnt move forward, below is my code

<label for="indoor"> 
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor 
</label>

Please provide the FULL code and challenge link so we can properly test your code.

Add a pair of radio buttons to your form, each nested in its own label element. One should have the option of indoor and the other should have the option of outdoor . Both should share the name attribute of indoor-outdoor to create a radio group.
below is my code

<h2>CatPhotoApp</h2>
<main>
 <p>Click here to view more <a href="#">cat photos</a>.</p>

 <a href="#"><img src="https://www.bit.ly/fcc-relaxing-cat" alt="A cute orange cat lying on its back."></a>

 <p>Things cats love:</p>
 <ul>
   <li>cat nip</li>
   <li>laser pointers</li>
   <li>lasagna</li>
 </ul>
 <p>Top 3 things cats hate:</p>
 <ol>
   <li>flea treatment</li>
   <li>thunder</li>
   <li>other cats</li>
 </ol>
 <form action="https://www.freecatphotoapp.com/submit-cat-photo">
   <input type="text" placeholder="cat photo URL" required>
   <button type="submit">Submit</button>
   <label for="indoor"> <input id="indoor" type="radio" name="indoor">Indoor </label>  <label for="outdoor"> <input id="outdoor" type="radio" name="outdoor"> Outdoor  </label>

 </form>
</main>

I have added the challenge links and FULL code.


This is the error message I get with your code.
Your radio buttons should be given the name attribute of indoor-outdoor .

Check your name attributes because you don’t have that.

Thats where i am confused, im trying to figure out , been stuck on it

You wrote this

but the directions tell you to use indoor-outdoor
make sense?

Of course i did that at first, it doesnt work before i sent you that to check out for me

Well this part is correct.

But you didn’t provide me the second label for outdoor.

What is your updated code?
And please provide the FULL code not code snippets.

It makes it easier for me to test your code if I have the FULL code.

I did it again and it works, thanks for your prompt response…

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