Survey Form missing one step to complete

I have written out everything needed for each stipulation except one. The one I am missing is asking "Every radio button group should have at least 2 radio buttons.

I have two radio buttons, but I am not sure they are “grouped”. I am guessing this is different from nesting elements as I have tried that and doesn’t seem to work.

Thanks for your time.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
    <link rel="stylesheet" href="styles.css">
    <h1 id="title">title</h1>
   <p id="description">disctription</p>
    <form id="survey-form">
      <input required placeholder="placeheld" id="name">Name</input>
      <input required placeholder="placeheld" type="email" id="email">email</input>
      <input id="number" min="8" max="9" placeholder="placeheld" type="number">number</input>
      <label id="name-label">text<label>
      <label id="email-label">text</label>
      <label id="number-label">89889</label>
      <select id="dropdown">
      **<input name="left-radio" type="radio" value="left">left</input>**
**      <input name="right-radio" type="radio" value="right">right</input>**
        <input value="thinking" type="checkbox">value</input>
        <input value="thoughts" type="checkbox">value</input>
        <input type="submit" id="submit">submit</input>



/* 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/ Safari/537.36 Edg/110.0.1587.50

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

Radio buttons are in the same group when they have the same name attribute.

P.S. You can’t put radio buttons inside of a select.

1 Like

ah yes thanks!
changed to “left-right” for the name of both to “group” them! this helps a lot :pray:

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