Hello,
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">
<head>
<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">
</head>
<body>
<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">
<fieldset>
<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="example@example.com" 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>
</select>
<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>Single-Player</option>
<option>Multi-Player</option>
<option>I love playing both</option>
<option>I prefer a game with a combination</option>
</select>
<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>
</fieldset>
<input type="submit" id="submit" value="Submit">
</form>
</body>
</html>