Help on the radio buttons please

Tell us what’s happening:
I’m very new to coding and i would like some help on my challenge, I can’t seem to be able to get pas the radio button stage, I would appreciate if you could tell me what i’ve done wrong.
Thanks

Your code so far


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

<a href="#"><img src="https://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>
  <input id="indoor" type="radio" name="indoor-outdoor">Indoor
  <label for="indoor"</label>
  <input id="outdoor" type="radio" name="indoor-outdoor">outdoor
  <label for="outdoor"</label>
<form action="/submit-cat-photo">
  <input type="text" placeholder="cat photo URL" required>
  <button type="submit">Submit</button>
</form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.129 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Hello!

Your <input> elements should be nested within your <label> elements.

1 Like

You need to nest your radio buttons inside of the labels, as shown in the written challenge description.

You also have a bug in your opening label tag. (You’re missing your >).

Once you fix those, the tests will tell you that you need to move your radio buttons inside of the form : )

1 Like

Thanks for the clarification

your spellings are mostly incorrect