Help needed urgently

Hi everyone,
I am completely stuck in this. What does it mean by nesting the radio buttons in label elements?
Please someone help me urgently!!!

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

</main>


Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_4) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.1 Safari/605.1.15.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Look at the example it gives you:

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

This is a radio button nested within a <label> element. Nesting means placing one element within another one.

1 Like

ooh friend, what they ,mean is to open label elements first and then place your code of radio button buttons there, e.g.

<label>
put your code here
</label>