Build a Survey Form - Build a Survey Form

Tell us what’s happening:

Apparently i do not have two radio buttons
what has gone wrong

Your code so far

<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <title>Survey Form</title>
  </head>

  <body>
    <h1 id="title">Hotel Feedback Form</h1>
    <p id="description">Please fill out this review so we can improve your and other's stays in the future!</p>
    <form id="survey-form">
<input required id="name" type="text" placeholder="Tim Cheese"><label id="name-label">Please enter your name.</label></input>
<input required id="email" type="email" placeholder="Dog@cat.com"><label id="email-label"> 
Please enter your email.</label>
</input>
<input type="number" id="number" min="3" max="100" placeholder="21"><label id="number-label">
Enter your age if you would like.
</label>
</input>
How was the food?<select id="dropdown">
  <option value="moldy">Moldy</option>
  <option value="drippy">I like my cheese drippy bruh</option>
  </select>
  Will you give us a tip?
  <input type="radio" name="yes" value="yes" id="yes"><label for="yes" id="yes" name="yes">Yes</label>
  <input type="radio" name="also" value="also" id="also"><label for="also" name="also" id="also">Also yes</label></input>
  How did you  find us?
  <input type="checkbox" value="nft">NFT scandal(we are sorry about that)
  <input type="checkbox" value="friend">Your friends</input>
  were we skibidi enough?
  <textarea></textarea>
  <button id="submit">Submit</button>
      </form>
  </body>
</html>

Your browser information:

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

Challenge Information:

Build a Survey Form - Build a Survey Form

you do have two radio buttons, but they are not in the same group, you may want to review what that means

Welcome to the forum @daniel18 !

Good attempt!

Here is a link to where somebody guided another learner with this same question to the solution.

Keep up the good progress. :slightly_smiling_face:

Thanks Everyone! I sadly didn’t realise someone had replied, so i ran it through a HTML validator and fixed it. Useful to know i have people to help :smiley:

1 Like