Survey Form - Build a Survey Form

Tell us what’s happening:

How can I submit my code? None of the instruction requirements are ticked as I have seen on other example that are doing (what I think is?) the same syntax, and I am completely stuck.

Your code so far

<!-- file: index.html -->
<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Gym Survey Form Project</title>
    <link rel="stylesheet" href="styles.css"/>
  </head>
  <body>
    <h1 id="title">Fitness Forever Survey Form</h1>
    <p id="description">Thank you for taking the time to complete this survey to help better our gym. Please only answer if you are a current or past member of our gym.</p>
    <form id="survey-form">
      <fieldset>
        <label id="name-label" for="full-name">Enter Your Full Name: <input id="full-name" name="full-name" type="text" placeholder="John Smith" required /></label>

        <label id="email-label" for="email">Enter Your Email:  <input id="email" name="email" type="email" placeholder="johnsmith@email.com" required /></label>

        <label id="number-label" for="number">Enter Your Age: <input id="number" name="age" type="number" min="13" max="140" placeholder="0" form="survey-form" /></label>
    </fieldset>

    <fieldset>
        <label for="dropdown">On average, how often do you use our gyms?
          <select id="dropdown" name="dropdown">
           <option value="">(select one)</option>
           <option value="1">Every/Most days</option>
           <option value="2">A few times a week</option>
           <option value="3">Once a week</option>
           <option value="4">A few times a month</option>
           <option value="5">I am no longer an active member</option>
           <option value="6">Prefer not to say</option>
           <option value="7">Other</option>
           </select>
    </fieldset>

    <fieldset> 
         <legend>Would you recommend Fitness Forever Gym to a friend?</legend>
        <label for="definitely"><input id="definitely" type="radio" name="recommendation" class="inline" />Definitely</label>

          <label for="maybe"><input id="maybe" type="radio" name="recommendation" class="inline" />Maybe</label>

          <label for="unsure"><input id="unsure" type="radio" name="recommendation" class="inline" />Unsure</label>
    </fieldset>

    <fieldset>
      <legend>What would you like to see improved? (Check all that apply)</legend>

          <label><input class="inline" type="checkbox" name="improvements" value="1" /> Improved & Diverse Gym Equiptment</label>

          <label><input class="inline" type="checkbox" name="improvements" value="2" /> Additional Fitness Classes Avaliable</label>

        <label><input class="inline" type="checkbox" name="improvements" value="3" /> Website Performance</label>

        <label><input class="inline" type="checkbox" name="improvements" value="4" /> App Fitness Tracking</label>

        <label><input class="inline" type="checkbox" name="improvements" value="5" /> Access to PT Training</label>
    </fieldset>

    <fieldset>
      <label for="comments">Any additional comments or suggestions?
        <textarea id="comments" name="comments" rows="5" cols="50"></textarea>
        </label>
      </fieldset>

      <input type="submit" value="Submit"/>
  
    </form>
  </body>
</html>
/* file: styles.css */
body {
  background-image: url("https://i.pinimg.com/originals/57/f7/6f/57f76f68dd8c4aa2e83e1910ad67d814.jpg");
  width: 100%;
  height: 100vh;
  margin: 0;
  color: #f5f6f7;
  font-family: Tahoma;
  font-size: 16px;
}

h1, 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: 1px solid white;
}

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 {
  background-color: white;
  border: 1px solid white;
  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;
}

input[type="file"] {
  padding: 1px 2px;
}

.inline{
  display: inline; 
}

Your browser information:

User Agent is: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/16.4 Safari/605.1.15

Challenge Information:

Survey Form - Build a Survey Form

Your name input should have an id of #name, not #full-name. Also your radio buttons need values.

Your submit button needs a corresponding id.

Otherwise your code looks great!

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