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


<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>
<form action="https://freecatphotoapp.com/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>
</form>

</main>

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!