Survey Form - Build a Survey Form

Tell us what’s happening:
Describe your issue in detail here.
I’m stuck with this step:
Every radio button group should have at least 2 radio buttons.

Your code so far

<!-- file: index.html -->
<h1 id="title">freeCodeCamp Survey Form</h1>
<p id="description">Thank you for taking the time to help us improve the platform</p>
<form id="survey-form">
  <input id="name" type="text" required placeholder="name" ></input>
  <input id="email" type="email" required placeholder="email" ></input>
  <input id="number" type="number" min="18" max="65" placeholder="number" ></input>
  <label id="name-label">name</label>
  <label id="email-label">email</label>
  <label id="number-label">age</label>
  <select id="dropdown">
    <option></option>
    <option></option>
  </select>
  <input type="radio" value="male" name="male" ></input>
  <input type="radio" value="female" name="female" ></input>
</form>

/* file: styles.css */
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
  font-family: Tahoma;
  font-size: 16px;
}

h1, p {
  margin: 1em auto;
  text-align: center;
}

Your browser information:

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

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

To group the buttons you must use the same value for the name.

(Right now you don’t have any grouping)

2 Likes

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