Survey Form - Build a Survey Form

Tell us what’s happening:
Describe your issue in detail here.

hello everyone, i was completing this challenge and i can’t pass this mission “Every radio button group should have at least 2 radio buttons.” , I tried in all the ways that came to my mind, even reading something about the same problem but nothing is resolved if anyone has any ideas, below is my code (given automatically by the request for help)

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html>
  <head>
    <link rel="stylesheet" href="styles.css">
  </head>
  <body>
<h1 id="title">Title</h1>
<p id="description">website that allows you to learn programming languages and more</p>
<form id="survey-form">
  <select id="dropdown">
<option type="radio" value="value">
<option type="radio" value="value">
    </select>
  <label id="name-label">NAME<input id="name" type="text" required placeholder="full name"></label>
  <label id="email-label">EMAIL<input id="email" type="email"required placeholder="namesurname@bla.bla"></label>
  <label id="number-label">NUMBER<input id="number" min="3333333333" max="9999999999" type="number" placeholder="3692581479"></label>
  <input type="radio" name="1" value="value">
  <input type="radio" name="2" value="value">
<selection>
  <input type="checkbox" value="value">
  <input type="checkbox" value="value">
  <textarea></textarea>
<input type="submit" id="submit">
</selection>
</form>
  </body>
</html>

Challenge: Survey Form - Build a Survey Form

Radio buttons are considered to be in the same group when they have the same value for the name attribute.

so should i give equal name value for each pair of radio button?

Why don’t you try it and see what happens?

Also, it doesn’t make sense for your radio buttons to have the same value for the value attribute. Don’t you want each radio button to have a unique value so you know which one is chosen? Same for the check boxes.

perfect I’ll try like this, it is much better to have them only but the delivery of the task wanted them all the same

The instructions do not require that you make the value attribute all the same. That would not make sense.

1 Like

Hello, thank you for opening my eyes but after so many hours and attempts I had lost my mind, thank you for helping me find the solution

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