Create a Set of Radio Buttons, Help?!

Tell us what’s happening:
I have tried this challenge about 15 times, and not sure what I am doing wrong. On the right hand view of the live view of the HTML web page created the radio buttons appear correctly and they do work properly. Each time I run the tests it fails out on 2 areas, those being:

  1. Give your radio buttons the name attribute of indoor-outdoor .
  2. Each of your two radio button elements should be nested in its own label element.

I have also watched the video and my code appears to be exactly the same as in the video. This is the first challenge I have struggle with thus far. I am not sure if this is a glitch or what I am doing wrong. Please explain to me what I am doing wrong…!!!

My code is as follows:

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


Your browser information:

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0.

You need to have a label for them <label for="...">...</label>

1 Like
  1. You need to be careful of spaces and punctuation
  2. You can copy and paste the example given to you and follow the same procedure they used
1 Like