Create a Set of Radio Buttons.... bug?

please help me,

I’m getting this answer when i am run the test, I really don’t see the issue… :sweat_smile:

Thank you for your reply :slight_smile:
code:

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

Indoor

Outdoor

Answer: // running tests Each of your two radio button elements should be nested in its own
label

element. Each of your

label

elements should have a closing tag. // tests completed

Tell us what’s happening:

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>
<label>
     <input id="indoor" type="radio" name="indoor-outdoor">
Indoor
</lable>
<label>
<input id="outdoor" type=radio name="indoor-outdoor">
Outdoor 
</label>
   <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/81.0.4044.138 Safari/537.36.

Challenge: Create a Set of Radio Buttons

Link to the challenge:

You should always type your attribute with double quote… i.e.,

type="text"
id="something"

Otherwise it will show you a error…
now look at your both input element…
There is something wrong…

yes and i did fix that issue but i still get the text that my label are not closed…

just a typo, fix the spelling issue

1 Like

oooh noo thats so stupid haha thanks! its fixed!

2 Likes