Survey Form - Build a Survey Form

Tell us what’s happening:

Every radio button group should have at least 2 radio buttons.
Somebody can help me about this ?

Your code so far

<!-- file: index.html -->
<html>
  <link rel="stylesheet" href="styles.css">
  <body>
<h1 id="title">Wines Market</h1>
<p id="description">Form to be part of the wine club</p>
<form id="survey-form">
  <select id="dropdown"><option>si</option><option>no</option></select>
  <label id="name-label"><input id="name" type="text" placeholder="name" required> name</label>
  <label id="email-label"><input id="email" type="email" placeholder="email" required> email</label>
  <label id="number-label"><input id="number" type="number" min="2" max="3" placeholder="number"> number</label>
  <input type="radio" value="si" name="si">
  <input type="radio" value="no" name="no"> 
  <input type="checkbox" value="malbec">
  <input type="checkbox" value="cabernet">
  <input type="checkbox" value="merlot">
  <input type="checkbox" value="pinot">
  <textarea placeholder="My experience in the world of wine is..."></textarea>
  <button id="submit"></button>
  </form>
  </body>
  </html>

/* file: styles.css */
body {
  background-color: rgb(150,0,0);
  text-align: center;
}
h1, p, label {
  color: white;
}

Your browser information:

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

Challenge Information:

Survey Form - Build a Survey Form

That’s means your both input radio should have same value for the name attribute .

1 Like

you group radio and checkboxes with the name attribute, make sure to give the same name to all the radios in the same group

1 Like

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