Label elements adding into radio button

Tell us what’s happening: Each of your two radio button elements should be nested in its own label element.
i don’t understand i did already still i am stuck

Your code so far

<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="">
<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>


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.102 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Your radio buttons are currently only nested in the form element. They are not nested in the label elements. If you re-read the instructions there are examples of inputs nested in labels.

1 Like

Your radio button is above your label, not nested inside of it. The challenge has an example of nesting.

where did i mistake?

Your radio buttons are not nested inside of your labels. Did you go back and look at the example in the written challenge description?

yes but i didn’t get it.

Ok, no problem. Can you paste that example code from the challenge written description and your code in the same post so that we can compare them together?

its solved thanks for realized me where did i mistake thanks all.

1 Like

Good work fixing the issue!