Create a Set of Radio Buttons - need help!

Hi folks,

this is my code.



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

<a href="#"><img src=“” alt=“A cute orange cat lying on its back.”></a>

<p>Things cats love:</p>


<li>cat nip</li>

<li>laser pointers</li>



<p>Top 3 things cats hate:</p>


<li>flea treatment</li>


<li>other cats</li>


<form action="/submit-cat-photo">

<input id=“indoor” type="radio"name=“indoor-outdoor”>

<label for=“indoor”>Indoor</label>

<input id=“outdoor” type=“radio” name=“indoor-outdoor”>

<label for=“outdoor”>Outdoor</label>

<input type=“text” placeholder=“cat photo URL” required>

<button type=“submit”>Submit</button>



I can not find the issue. Can someone help me, please?

Put a space between type="radio" and name in the section above.

There is no errors. Only question I have is do you need the / in the tion="/su


I did exactly what you told me, but it is still doesn´t work. So, what can I do know?

Btw.: The challenge says this:

Blockquote: Give your radio buttons the name attribute of indoor-outdoor.
Each of your two radio button elements should be nested in it´s own lable element.


@Bulgaria put your inputs inside of the label.

<form action="/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-outdoor">Indoor 
<label for="outdoor"> 
  <input id="outdoor" type="radio" name="indoor-outdoor">outdoor 

Yeah, it worked. Thank you very much man!!

1 Like