Stuck with Radio Buttons at Survey Form

Hello Guys,

I’ve been trying to get to the solution for this the whole day now but it seems like I can’t find the problem.

No matter what I try I can’t complete step #13 in the Survey Form Challenge.
It seems like I do something wrong with the Radio Buttons.
This is my code:

Question:
<label for="option-1"><input type="radio" id="option-1" name="option" value="option-1"/>Yes</label>

<label for="option-2"><input type="radio" id="option-2" name="option" value="option-2"/>No</label>

<label for="option-3"><input type="radio" id="option-3" name="option" value="option-3"/>Maybe</label>

Thx for your help in advance.
leond

Please provide a link to your codepen so we can see the code in context. Thanks.

Hello. This is the link to my full code: https://codepen.io/leond_/pen/gORqEGO

Thx for your reply

1 Like

Hello, did you find any mistake ?

Tragically, I am about as good with HTML/CSS as I am with ancient Greek. I asked for the link because the folks on the forum who actually know HTML/CSS always ask for the codepen to help them understand what’s going on.

Ohh ok I See, thanks anyways for your help. Maybe someone finds something.

hii
i saw your code ,
if you remove all of yours div tags in code then your issue will be resolved.
and as of my knowledge i think here these divs are causing issue because div tags are used to create division and section , but here in this case radio boxes are also part of form …
hope it will help you…

1 Like

Omg. Thank you so much!!! I knew it was outside of the radio button code. Why are the div tags causing problems tho ? Just because I put the element in div sections the code is still fine or no ?

1 Like

as of my knowledge…
if you want to use div then u have to put your forms and all the related elements in same div (direct child of that div)
but previously form and radio buttons were in different div and that was causing issue

happy coding…

1 Like

I See, thank you very much !

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.