Test 13 Survey form project

Hello,
I have one failed test left in the survey form project of the responsive web design course:

13. Inside the form element, I can select a field from one or more groups of radio buttons. Each group should be grouped using the name attribute. Each radio button must have a value attribute.

This is my code for the radio buttons:

Screenshot 2021-07-27 20.51.40

Thank you for your help

1 Like

Not sure if this is what’s causing your problem, but I noticed most of your labels have the same id attribute of “entry” - ids should only be used for one unique element. If you need to reuse an id, consider using class instead.

Also, a label’s for attribute should be the same as the corresponding item’s id, not name.

It would also be helpful to post a link to your code on Codepen so we can fiddle around with it.

1 Like

I put the for attributes to the corresponding items’ ids.
The id attribute of “entry” is just to modify the font-size of the labels.

Here’s the link to the code on Codepen:

Thank you

In which case, class will be better to use.

Anyway, found your typo: value"33" should be value="33", that’s why it only found the value of two of the three radio buttons.

Yep that was it
Thank you so much!!

Could you please mark the reply as a solution then? Thank you.

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