Need help with the last point of a course

i just need some help with the last point i’ve done all the other code put this keeps showing up

Each of your two radio button elements should be nested in its own label element.

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_15_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/81.0.4044.138 Safari/537.36 OPR/68.0.3618.206.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

1 Like

Hello and welcome.
Each of your input element should be inside its own label element.
The structure for this challenge should be like this:

<label ........>
   <input .............................> Indoor


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

It is great that you solved the challenge, but instead of posting your full working solution, it is best to stay focused on answering the original poster’s question(s) and help guide them with hints and suggestions to solve their own issues with the challenge.

We are trying to cut back on the number of spoiler solutions found on the forum and instead focus on helping other campers with their questions and definitely not posting full working solutions.

Thank you for understanding.

1 Like

Thank you and I totally agree with what you said, but I have seen this quite a lot and most beginners don’t know what does nest mean. So I try to give them a brief definition and give them a simple structure to understand it.