Build a Survey Form Failing One Test


I’m trying to submit the survey form project and all of the tests are passing except for the second to last one: Your #submit should have a type of submit . I’ve looked all over and can’t seem to find why my code wouldn’t count as having met that requirement. The button even works on the preview.

<!DOCTYPE html>
<html lang="en">

  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initital-scale=10">
  <title>Video Game Survey</title>
  <link rel="stylesheet" href="styles.css">

  <h1 id="title" class="title">Video Game Survey</h1>
  <p class="description" id="description">This will help us cater our future games to your likes.</p>
  <form id="survey-form">
      <label id="name-label"> Full Name:<input type="text" name="name" id="name" placeholder="ex: Iisak Niemela" required></label>
      <label id="email-label">Email Address:<input type="email" id="email" name="email" placeholder="" required></label>
      <label id="number-label">Age(Optional):<input type="number" name:"number" id="number" min="13" max="120" placeholder="ex: 69"></label>
      <label>What is your experience with gaming?<select id="dropdown">
  <option>(Select One)</option>
  <option>Never played one</option>
  <option>I've started a couple of games</option>
  <option>I've beaten a couple of games</option>
  <option>I've completed a lot of games</option>
  <option>I've played everything</option>
  <label>How long have you been playing games?</label>
      <label><input type="radio" name="game-age" id="submit" class="inline" value="0"> 0 years</label>
      <label><input type="radio" name="game-age" id="submit" class="inline" value="1-2"> 1-2 years</label>
      <label><input type="radio" name="game-age" id="submit" class="inline" value="3-4"> 3-4 years</label>
      <label><input type="radio" name="game-age" id="submit" class="inline" value="5+"> 5+ years</label>
      <label>Do you prefer single or multi-player?<select id="dropdown" required>
  <option>(Select One)</option>
  <option>No preference</option>
  <option>I love playing both</option>
  <option>I prefer a game with a combination</option>
  <label>What are your favorite genres?</label>
      <label><input type="checkbox" name="Action" id="genre" value="Action"> Action</label>
      <label><input type="checkbox" name="Sports" id="genre" value="Sports"> Sports</label>
      <label><input type="checkbox" name="MMORPG" id="genre" value="MMORPG"> MMORPG</label>
      <label><input type="checkbox" name="RPG" id="genre" value="RPG"> RPG</label>
      <label><input type="checkbox" name="RTS" id="genre" value="RTS"> RTS</label>
      <label><input type="checkbox" name="Shooters" id="genre" value="Shooters"> Shooters</label>
      <label><input type="checkbox" name="Sports" id="genre" value="Sports"> Sports</label>
      <label>What is your favorite game and why?<textarea name="favegame" rows="5" cols="40" id="favegame" placeholder="Kingdom Hearts 2" required></textarea></label>
    <input type="submit" id="submit" value="Submit">



An id value must be unique - it can only be used on one element in your html.

Your html has some duplicate id values.
One of them is “submit”.

There are a few other syntax errors in your html.
It would probably be a good idea to run it through a html validator.

Thank you so much! New at this so the first real thing I did. Thanks for that tool, I will definitely use it in the future.

Hang in there - it gets easier with practice! :smiley:

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