Survey Form - Build a Survey Form

Tell us what’s happening:
I have every thing checked in the first part but the one that says, “Every radio button group should have at least 2 radio buttons.” Which I think i have two radio button in that section. I have three actually but it still does not work. I tried it with only two and still nothing. Any help?

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
   <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="stylesheet" href="styles.css" />
  <title> </title>
  <body>
    <h1 id="title">Free code camp</h1>
    <p id="description">Thank you for taking the time to help us improve the platform</p>
    <form id="survey-form">
      <label id="name-label">Name<input placeholder="John" id="name" type="text" required>
      <label id="email-label">Email<input placeholder="free@codecamp.com" id="email" type="email" required>
      <label id="number-label">Age<input placeholder="24" id="number" type="number" min="1" max="100">
      <select id="dropdown">
        <option></option>
        <option></option>
      <label><input type="radio" name="1" value="1"></label>
      <label><input type="radio" name="2" value="2"></label>
      <label><input type="radio" name="3" value="3"></label>
      <label><input type="checkbox" value="1"></label>
      <label><input type="checkbox" value="2"></label>
      <label><textarea></textarea></label>
      <input id="submit" type="submit">
    </form>
    </body>
  </html>
/* file: styles.css */

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/111.0.0.0 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

Radio buttons are part of the same group when they have the same value for the name attribute.

Mine all have different names

Correct, that’s why they aren’t considered to be in the same group.

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