The problem was :Each of your radio button elements should be added within the form tag

Tell us what’s happening:

Your code so far



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


Your browser information:

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

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

So there’s something called a <form> tag

this is where one usually places <input> tags under.

Have a go again and make sure your code above is within the opening and closing form tags

1 Like