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


<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_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
</label>

Solution:

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

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.