Survey Form - Build a Survey Form

I’m having some problems with only one line , of my code for the last project . Its the line that says : “Every radio button group should have at least 2 radio buttons”. I have tried to add two radio buttons inside one but it won’t work . If anyone can help me , would really appreciate it .

Your code so far

<!-- file: index.html -->
<html>
  <head>
    <h1 id="title">FreeCodeCamp Survey Form</h1>
    </head>


    <body>

      <link rel="styelesheet" href="styles.css">







      <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="Enter your name"></input>
        <br>
        
        <input id="email" type="email" required placeholder="Enter your email"></input><br>
        
        <input id="number" type="number" min="18" max="120" placeholder="Age"><br>


        <label id="name-label">Name</label><br>
        <label id="email-label">Email</label><br>
        <label id="number-label">Age</label><br>
<select id="dropdown" >
  <option></option>
  <option></option>
</select>
<br>

<div>

  <label>Would you recomend freeCodeCamp</label>

<div>
<input type="radio" name="Definetly" value="radio1">Definetly


</input>
</div>


<br>

<div>
<input type="radio" name="Maybe" value="radio2"> Maybe</input>
</div>


</div>
<br>



<input type="checkbox" value="ch1"></input>
<br>
<input type="checkbox" value="ch2"></input><br>

<textarea></textarea>
<br>
<input type="submit" value="submit" id="submit"></input>




      </form>
      </body>




</html>































  </html>
/* file: styles.css */

Your browser information:

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

Challenge Information:

Survey Form - Build a Survey Form

Hey.
Give your radio button element the same name attribute. You decide if you want to use Maybe or Definetely. That’s how you group them.

4 Likes

Hey @arbri
In addition to what has been said inputs are self closing tags so you don’t need the closing tag so you need to remove it

just

<input type="#" name="#"  value="value">value
Happy coding!!
4 Likes

Thank u so much it really helped me !

2 Likes

Thank u man! I add the tip that u told me to the code that i had .

3 Likes

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