Survey Form. Certification prject

Hi. I have some problems with this task.

Every radio button group should have at least 2 radio buttons.

So, here’s my code for this task. All other tasks in this work are correct. I was looking for how to do this task on the Internet, and checked my own, I don’t understand what the problem is.

       <legend>Would you recommend freeCodeCamp to a friend?</legend>
     <input type="radio" id="first" name="first" value="Draft" checked >
     <label for="first">Yes</label>
     <input type="radio" id="variant" name="variant" value="Option">
     <label for="variant">No</label>
     <input type="radio"  id="variant1" name="variant1" value="Version">

I believe radio buttons that are grouped together should all have the same “name” attribute… indicating they are all part of setting a single value.

1 Like

Thank you, so much, it works now. I really forgot about that.

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