Radio button group? ( Challenge: Survey form)

**hi what does it mean when,it says that radio button group should have at least two radio buttons? because in my code I have three radio buttons ?

/* file: index.html */
<!DOCTYPE html>
<html>
 <head>
   <title>freeCodeCamp Survey Form</title>
   <link rel="stylesheet" href="styles.css">
 </head>
 <body>
   <div>   <h1 id="title">freeCodeCamp Survey Form</h1>
   <p id="description">Thank you for taking the time to help us improve the platform</p>
   </div>
   <form id="survey-form">
       <label id="name-label"> Name <input id="name" for="name" type="text" required/ placeholder="name"> </label>
        <label id="email-label"> Email <input id="email" type="email" required placeholder="email"/></label>
   <label id="number-label"> age <input id="number" type="number"optional placeholder="age" min="10" max="100"/> 
   </label> 
   <label> Which option describe your current role</label> <select id="dropdown" name="role">
     <option value="">(select  current role)</option>
     <option value="student">Student</option>  
     <option value="fulltimejob">Full Time Job</option>
 <option value="fulltime learner">Full Time Learner</option>
     <option value="prefernottosay">Prefer Not to Say</option>
     <option value="other">Other</option>
     </select>
       <br>
       <p>Would you recommend freeCodeCamp to a friend?</p>
<label><input id="definitely" type="radio"name="definitely" value="definitely"/>Definitely</label><br>
<label><input id="maybe" type="radio" name="maybe"value="maybe"/>Maybe</label><br>
<label><input id="notsure" type="radio" name="notsure" value="notsure"/>Not Sure</label><br>
<label> What is your favorite feature of freeCodeCamp</label><br>
 <select id="favoritefeature" name="favoritefeature">
   <option value="">(select an option)</option> 
   <option value="challenges"> Challenges</option> 
   <option value="projects"> Projects</option> 
   <option value="community"> Community</option> 
   <option value="opensource"> Opensource</option> 
   </select>
<p>What would you like to see improved? (check all that apply)</p>
<label><input type="checkbox" id="frontendprojects" value="frontendprojects"name="improvement">Front-end Projects</label><br>
<label><input type="checkbox" id="backendprojects" value="backendprojects" name="improvement">Back-end Projects</label><br>
<label><input type="checkbox" id="datavisualization" value="datavisualization" name="improvement">Data Visualization</label><br>
<label><input type="checkbox" id="Challenges" value="Challenges" name="improvement">Challenges</label><br>
<label><input type="checkbox" id="opensourcecommunity" value="opensourcecommunity"name="improvement">Open Source Community</label><br>
<label><input type="checkbox" id="gitterhelp" value="gitterhelp" name="improvement">Gitter help rooms</label><br>
<label><input type="checkbox" id="videos" value="videos" name="improvement">Video</label><br>
<label><input type="checkbox" id="citymeetups" value="citymeetups" name="improvement">City Meetups</label><br>
<label><input type="checkbox" id="wiki" value="wiki" name="improvement">Wiki</label><br>
<label><input type="checkbox" id="forums" value="forums"name="improvement">Forums</label><br>
<label><input type="checkbox" id="additionalcourses" value="additionalcourses" name="improvement">Additional Courses</label><br>
<label>Any comment or suggestions?<textarea name="suggestions" rows="10" cols="30" placeholder="Enter your comment here..."></textarea></label><br>
<input type="submit" id="submit"value="Submit"/>
</form>
</body>
</html>
/* file: styles.css */

   **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.0.0 Safari/537.36

Challenge: Build a Survey Form

Link to the challenge:

1 Like

Defining a radio group:

ā€œA radio group is defined by giving each of radio buttons in the group the same name.ā€

thanks again @bbsmooth.I completed the survey form challenge! :hugs:

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