Responsive Web Design Projects - Build a Survey Form

Responsive Web Design Projects - Build a Survey Form
0

#1

Please help. I am failing just 1 test out of 17: https://codepen.io/MrJim/pen/dKWJmK

Error is:

  1. 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.

I do have radio buttons grouped with a common name…what am I missing? :slight_smile:


#2

Hey @MrJim, Equal sign is missing for the value attribute of the radio button. Please fix this.


#3

@Ujjwal1604

Oh - well spotted!!

Thank you! :grinning:


#4

Glad to help. Happy coding.


#5

Hi guys,

Thank you for the answer!

However, I’m wondering why it’s compulsory to put a value attribute? Indeed, in the guidelines of this exercices it’s requested to put a name attribute for the radio buttons and a value attribute for the checkboxes. Then why should we pout a value attribute on the radio buttons?

Because the grouping is linked to the name attribute isn’t it?

I hope the question is clear, I’m not english native :wink:

Thank you for your help,

Pierre


#6

i just completed my project2 (Survey Form) – https://codepen.io/sriaman/pen/djQyeN
give me some suggestions and feedback about that
'thank you freecodecamp for giving a better platform to web developers to learn and build "