Create a set of radio buttons(having trouble nesting radio elements in label element, everything else reads correctly

Tell us what’s happening:
It says I have everything correct. But it keeps saying each of my 2 radio elements should be nested in its own label element. I’m not understanding what I am doing wrong. If anyone can help it would be greatly appreciated, I have been stuck a little while.

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>
<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) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.4 Safari/605.1.15.

Challenge: Create a Set of Radio Buttons

Link to the challenge:
https://www.freecodecamp.org/learn/responsive-web-design/basic-html-and-html5/create-a-set-of-radio-buttons

Here’s the example given on how to create a radio button:

“label for=“indoor”
input id=“indoor” type=“radio” name=“indoor-outdoor”>Indoor
label”

Your radio buttons will need to be nested inside your label element instead of detaching them.

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

Each of your input elements is before a label element. They need to be nested inside the appropriate label element.

<outerElement>
    <nestedElement>I am the contents of a nested element.</nestedElement>
</outerElement>

Thank you everyone, I appreciate the help guys. Took me a couple attempts but i got it. I had the right idea, just wasn’t executing it properly