Tell us what’s happening:
‘how to put radio buttons and answer’
Click here to view more cat photos.
Things cats love:
- cat nip
- laser pointers
Top 3 things cats hate:
- flea treatment
- other cats
**Your browser information:**
User Agent is: <code>Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18362</code>.
**Challenge:** Create a Set of Radio Buttons
**Link to the challenge:**
Try the hints here: freeCodeCamp Challenge Guide: Create a Set of Radio Buttons
If you are still stuck; someone will try to help just post your current code in a response with 3 back ticks ``` (shift ~ button)
Or for whoever doesn’t have it on the keyboard: ALT + 96
Here is my solution for that
<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>
<p>Top 3 things cats hate:</p>
placeholder="cat photo URL" required>
<input id="Indoor" type="radio" name="indoor-outdoor">Indoor
<input id="Outdoor" type="radio" name="indoor-outdoor">Outdoor
It keeps giving me the error that each label element must have a closing tag. Am I missing something?
Figured it out, the code was correct, I had a in a comment i had added at the bottom of the document. Doh.
for the create radio button you should know 2 tip.
first input element have type=“radio” attribute it create radio buton.
second input name should be same other wise you choose both button then no meaning radio button its turn checkbox.
<input type=“radio” name=“color”< white
<input type=“radio” name=“color”< black
note:when ı write <input(>) my writing is not visible.
Thanks alot This solution really helped and allowed me to continue with the program