Can't submit my first survey form project

Hello, I am having trouble getting the submit button for the survey form in responsive web developement, assuming I may have some errors in my code.
Please help, thank you in advance.

<!DOCTYPE html>
<html lang="en">
  <head>
    <link rel="stylesheet" href="styles.css">
    <meta charset="UTF-8">
    <title>Favorite Metal Music Genre Survey Form</title>
  </head>
  <body>
    <h1 id="title">Favorite Metal Music Genre Survey Form</h1>
    <p id="description"><i>Thank you for headbanging while participating in this survey!</p></i>
    <p><h2><center>🤘🤮🤘</h2></p></center>
        <form id="survey-form">
    
    <fieldset>
        <label for="name" id="name-label">Name <input name="name" type="text" required placeholder="type full name here..."/></label>
        <label for="email" id="email-label" >Email <input name="email" type="email" placeholder="type email address here..."required /></label>
        <label for="number" id="number-label">Age (optional)<input type="number" min="1" max="150" placeholder="enter your age here..."></label>
        
        <br>
        <label for="role" id="dropdown">Choose the best option that describes your role <select name="role" id="role">
            <option value="chooseyourrole" disabled>Choose your role</option>
            <option value="student">Student</option>
            <option value="music industry">Musician/Music Industry</option>
            <option value="employed">Employed</option>
            <option value="military">Military/Veteran</option>
            <option value="prefernottosay">Prefer not to say</option>
            <option value="other">Other</option>
        </select></label>
    </fieldset>
    
    
    <fieldset>
        <label for="listening">Are you currently listening to Metal music now?
        <label for="listening"><input id="yes" type="radio" name="listening" class="inline" /> Yes</label>
        <label for="listening"><input id="no" type="radio" name="listening" class="inline" /> No</label>
      
    <br>
        <label for="genre">Choose ONE of your favorite Metal genres
        <label for="genre"><input id="heavymetal" type="checkbox" name="genre" class="inline" value="1"/>     Heavy Metal</label>
        <label for="genre"><input id="thrashmetal" type="checkbox" name="genre" class="inline" value="1"/> Thrash Metal</label>
        <label for="genre"><input id="deathmetal" type="checkbox" name="deathmetal" class="inline" value="1"/> Death Metal</input></label>
        <label for="genre"><input id="blackmetal" type="checkbox" name="blackmetal" class="inline" value="1"/> Black Metal</input></label>
        <label for="genre"><input id="doommetal" type="checkbox" name="doommetal" class="inline" value="1"/> Doom Metal</input></label>
        <label for="genre"><input id=stonermetal" type="checkbox" name="metal" class="inline" value="1"/> Stoner Metal</input></label>
        <label for="genre"><input id="speedmetal" type="checkbox" name="speedmetal" class="inline" value="1"/> Speed Metal</input></label>
        <label for="genre"><input id="powermetal" type="checkbox" name="powermetal" class="inline" value="1"/> Power Metal</input></label>
        <label for="genre"><input id="gothicmetal" type="checkbox" name="gothicmetal" class="inline" value="1"/> Thrash Metal</input></label>
        <label for="genre"><input id="folkmetal" type="checkbox" name="folkmetal" class="inline" value="1"/> Folk Metal</input></label>
        <label for="genre"><input id="progressivemetal" type="checkbox" name="progressivemetal" class="inline" value="1"/> 
       Progressive Metal</input></label>
        <label for="genre"><input id="symphonicmetal" type="checkbox" name="symphonicmetal" class="inline" value="1"/> 
       Symphonic Metal</input></label>
        <label for="genre"><input id="numetal" type="checkbox" name="numetal" class="inline" value="1"/> Nu Metal</input></label>
            <option value="numetal">Nu Metal</option>
        <label for="genre"><input id="alternativemetal" type="checkbox" name="alternativemetal" class="inline" value="1"/> Alternative Metal</input></label>
        <label for="genre"><input id="metalcore" type="checkbox" name="metalcore" class="inline" value="1"/> Metalcore</input></label>
        <label for="genre"><input id="sludgemetal" type="checkbox" name="sludgemetal" class="inline" value="1"/> Sludge Metal</input></label>
        <label for="genre"><input id="dronemetal" type="checkbox" name="dronemetal" class="inline" value="1"/> Drone Metal</input></label>
        <label for="genre"><input id="industrialmetal" type="checkbox" name="industrialmetal" class="inline" value="1"/> Industrial Metal</input></label>
        <label for="genre"><input id="grindcore" type="checkbox" name="grindcore" class="inline" value="1"/> Grindcore</input></label>
        <label for="genre"><input id="metallichardcore" type="checkbox" name="metallichardcore" class="inline" value="1"/> Metallic Hardcore</input></label>
        <label for="genre"><input id="other" type="checkbox" name="other" class="inline" value="1"/> Other</input></label>
        </select>
    </fieldset>
    
    
    <fieldset>
      <label for="suggestions-comments">Suggestions, comments, or other metal genre/s not listed above? <textarea id="suggestions-comments" name="suggestions-comments" rows="10" cols="30" placeholder="Please type suggestions, comments, or other metal genre/s here.."></textarea>
  </fieldset>
  <br>
      <input type="submit" id="submit"/></input>
    </form>
  </body>
</html>
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
  font-family: Tahoma;
  font-size: 16px;
}

h1, h2, p {
  margin: 1em auto;
  text-align: center;
}

form {
  width: 60vw;
  max-width: 500px;
  min-width: 300px;
  margin: 0 auto;
  padding-bottom: 2em;
}

fieldset {
  border: none;
  padding: 2rem 0;
  border-bottom: 3px solid #3b3b4f;
}

fieldset:last-of-type {
  border-bottom: none;
}

label {
  display: block;
  margin: 0.5rem 0;
}

input,
textarea,
select {
  margin: 10px 0 0 0;
  width: 100%;
  min-height: 2em;
}

input, textarea {
  resize:none;
  background-color: #0a0a23;
  border: 1px solid #0a0a23;
  color: #ffffff;
}

.inline {
  width: unset;
  margin: 0 0.5em 0 0;
  vertical-align: middle;
}

input[type="submit"] {
  display: block;
  width: 60%;
  margin: 1em auto;
  height: 2em;
  font-size: 1.1rem;
  background-color: #3b3b4f;
  border-color: white;
  min-width: 300px;
}

.inline{
  display: inline; 
}

I’ve edited your code for readability. When you enter a code block into a forum post, please precede it with a separate line of three backticks and follow it with a separate line of three backticks to make it easier to read.

You can also use the “preformatted text” tool in the editor (</>) to add backticks around text.

See this post to find the backtick on your keyboard.
Note: Backticks (`) are not single quotes (').

<!DOCTYPE html>
<html lang="en">
  <head>
    <link rel="stylesheet" href="styles.css">
    <meta charset="UTF-8">
    <title>Favorite Metal Music Genre Survey Form</title>
  </head>
  <body>
    <h1 id="title">Favorite Metal Music Genre Survey Form</h1>
    <p id="description"><i>Thank you for headbanging while participating in this survey!</p></i>
    <p><h2><center>🤘🤮🤘</h2></p></center>
        <form id="survey-form">
    
    <fieldset>
        <label for="name" id="name-label">Name <input name="name" type="text" required placeholder="type full name here..."/></label>
        <label for="email" id="email-label" >Email <input name="email" type="email" placeholder="type email address here..."required /></label>
        <label for="number" id="number-label">Age (optional)<input type="number" min="1" max="150" placeholder="enter your age here..."></label>
        
        <br>
        <label for="role" id="dropdown">Choose the best option that describes your role <select name="role" id="role">
            <option value="chooseyourrole" disabled>Choose your role</option>
            <option value="student">Student</option>
            <option value="music industry">Musician/Music Industry</option>
            <option value="employed">Employed</option>
            <option value="military">Military/Veteran</option>
            <option value="prefernottosay">Prefer not to say</option>
            <option value="other">Other</option>
        </select></label>
    </fieldset>
    
    
    <fieldset>
        <label for="listening">Are you currently listening to Metal music now?
        <label for="listening"><input id="yes" type="radio" name="listening" class="inline" /> Yes</label>
        <label for="listening"><input id="no" type="radio" name="listening" class="inline" /> No</label>
      
    <br>
        <label for="genre">Choose ONE of your favorite Metal genres
        <label for="genre"><input id="heavymetal" type="checkbox" name="genre" class="inline" value="1"/>     Heavy Metal</label>
        <label for="genre"><input id="thrashmetal" type="checkbox" name="genre" class="inline" value="1"/> Thrash Metal</label>
        <label for="genre"><input id="deathmetal" type="checkbox" name="deathmetal" class="inline" value="1"/> Death Metal</input></label>
        <label for="genre"><input id="blackmetal" type="checkbox" name="blackmetal" class="inline" value="1"/> Black Metal</input></label>
        <label for="genre"><input id="doommetal" type="checkbox" name="doommetal" class="inline" value="1"/> Doom Metal</input></label>
        <label for="genre"><input id=stonermetal" type="checkbox" name="metal" class="inline" value="1"/> Stoner Metal</input></label>
        <label for="genre"><input id="speedmetal" type="checkbox" name="speedmetal" class="inline" value="1"/> Speed Metal</input></label>
        <label for="genre"><input id="powermetal" type="checkbox" name="powermetal" class="inline" value="1"/> Power Metal</input></label>
        <label for="genre"><input id="gothicmetal" type="checkbox" name="gothicmetal" class="inline" value="1"/> Thrash Metal</input></label>
        <label for="genre"><input id="folkmetal" type="checkbox" name="folkmetal" class="inline" value="1"/> Folk Metal</input></label>
        <label for="genre"><input id="progressivemetal" type="checkbox" name="progressivemetal" class="inline" value="1"/> 
       Progressive Metal</input></label>
        <label for="genre"><input id="symphonicmetal" type="checkbox" name="symphonicmetal" class="inline" value="1"/> 
       Symphonic Metal</input></label>
        <label for="genre"><input id="numetal" type="checkbox" name="numetal" class="inline" value="1"/> Nu Metal</input></label>
            <option value="numetal">Nu Metal</option>
        <label for="genre"><input id="alternativemetal" type="checkbox" name="alternativemetal" class="inline" value="1"/> Alternative Metal</input></label>
        <label for="genre"><input id="metalcore" type="checkbox" name="metalcore" class="inline" value="1"/> Metalcore</input></label>
        <label for="genre"><input id="sludgemetal" type="checkbox" name="sludgemetal" class="inline" value="1"/> Sludge Metal</input></label>
        <label for="genre"><input id="dronemetal" type="checkbox" name="dronemetal" class="inline" value="1"/> Drone Metal</input></label>
        <label for="genre"><input id="industrialmetal" type="checkbox" name="industrialmetal" class="inline" value="1"/> Industrial Metal</input></label>
        <label for="genre"><input id="grindcore" type="checkbox" name="grindcore" class="inline" value="1"/> Grindcore</input></label>
        <label for="genre"><input id="metallichardcore" type="checkbox" name="metallichardcore" class="inline" value="1"/> Metallic Hardcore</input></label>
        <label for="genre"><input id="other" type="checkbox" name="other" class="inline" value="1"/> Other</input></label>
        </select>
    </fieldset>
    
    
    <fieldset>
      <label for="suggestions-comments">Suggestions, comments, or other metal genre/s not listed above? <textarea id="suggestions-comments" name="suggestions-comments" rows="10" cols="30" placeholder="Please type suggestions, comments, or other metal genre/s here.."></textarea>
  </fieldset>
  <br>
      <input type="submit" id="submit"/></input>
    </form>
  </body>
</html>
body {
  width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
  font-family: Tahoma;
  font-size: 16px;
}

h1, h2, p {
  margin: 1em auto;
  text-align: center;
}

form {
  width: 60vw;
  max-width: 500px;
  min-width: 300px;
  margin: 0 auto;
  padding-bottom: 2em;
}

fieldset {
  border: none;
  padding: 2rem 0;
  border-bottom: 3px solid #3b3b4f;
}

fieldset:last-of-type {
  border-bottom: none;
}

label {
  display: block;
  margin: 0.5rem 0;
}

input,
textarea,
select {
  margin: 10px 0 0 0;
  width: 100%;
  min-height: 2em;
}

input, textarea {
  resize:none;
  background-color: #0a0a23;
  border: 1px solid #0a0a23;
  color: #ffffff;
}

.inline {
  width: unset;
  margin: 0 0.5em 0 0;
  vertical-align: middle;
}

input[type="submit"] {
  display: block;
  width: 60%;
  margin: 1em auto;
  height: 2em;
  font-size: 1.1rem;
  background-color: #3b3b4f;
  border-color: white;
  min-width: 300px;
}

.inline{
  display: inline; 
}
Just noticed I didn't need the <center> element for the <h2> title as it is styled in the css. So I just removed that.

I just figured it all out, I am running the test, and realized that all the missing steps are shown, I understand what I am missing now, I’m revising my code now.

3 Likes

That, my friend is debugging, glad you were able to figure it our. Happy coding :blush:!

1 Like