Label for Radio buttons

Tell us what’s happening:
I am seeing the radio buttons as well as their labels on the web page yet I am still not able to submit the project, i have watched the video and read over the code several times yet I am not able to pick out the problem

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">
  <lable for="indoor">Indoor</lable>
  <input id="outdoor" type="radio" name="indoor-outdoor">
  <lable for="outddor">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/84.0.4147.125 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

hi there @sager1214

it is <label> and not <lable> like in your code

Hey Sean,

nice to meet you!

  1. You have a small typo: lable
  2. The lesson wants you to nest elements: Each of your two radio button elements should be nested in its own label element.

Nesting means something like this:

<outer> 
  <inner>I am nested</inner>
</outer>

Keep us posted!

1 Like

i have adjusted the label typo, I was finely able to get the challenge completed, i tried for 40 mins then watched the video link then had but the video did not show the label nesting for the 2 radio buttons, which was driving me crazy for a good 30 more min before posting here. Thank you both for your help!