What did I get wrong?

Tell us what’s happening:

Creating radio button - said I need to have them in their own label- and have closing tag . Isn’t is closing tag?

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

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


</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.5 Safari/605.1.15.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

Look at what the console said you did wrong and what its supposed to be.

  • Looking at the code, you have made a little typo there. Tell me what’s wrong with this code.
<label>
<input id="indoor" type="radio" name="indoor-outdoor">
 indoor</lable>

You must think I ‘m blind or stupid but I don’t see anything wrong or misspell

You see, you opened it with <label> but you closed it with <lable> which is not the syntax HTML uses. So it’s just a small typo.

I got it. Thank you. .