There is a problem with creating a radio button

Tell us what’s happening:

hey im trying to make a radio button ,im following exactly as the video says and coding like that but it says theres something wrongg which i cant figure it out !

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">
<lable for="indoor">Indoor</lable>
<input id="outdoor" type="radio" name="indoor-outdoor">
<lable for="outdoor">Outdoor</lable>
   <input type="text" placeholder="cat photo URL" required>
   <button type="submit">Submit</button>
    
 </form>
</main>

Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36.

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

there are a few issues:

  • The element is not called lable, check again!
  • The input should be nested in its own label. If you don’t remember what nested means, check this challenge, or just look better at the example code.

thank for the respond, yeah i fixed the issus but in the video there is no nest job !

Thank you for helping make FCC better. Bugs can be reported as GitHub Issues. Whenever reporting a bug, please check first that there isn’t already an issue for it and provide as much detail as possible.