Survey Form - Build a Survey Form

Thank you all for all the help. What a great community!

<!DOCTYPE  html>
<html lang="en">
  <head>
    <meta charset="UTF-8">
    <title>Survey Form</title>
    <link rel="stylesheet" href="styles.css" />
  </head>
  <body>
  <h1 id="title">freeCodeCamp Survey Form</h1>
  <p id="description">Thank you for taking the time to help us improve the platform</p>
  <form method="post" action='https://register-demo.freecodecamp.org'id="survey-form">
  <fieldset>
    <label id="name-label" for="name">Name <input id="name" name="name" type="text" placeholder="name" required/></label>
    <label id="email-label" for="email">Email <input id="email" name="email" type="email" required placeholder="email"/></label>
   <label id="number-label" for="number">Age (optional) <input id="number" type="number" name="number" min="10" max="99" placeholder="10"/></label>
   <label for="current-role">Which option best describes your current role?
          <select id="dropdown" name="dropdown">
            <option value="">Select current role</option>
            <option value="1">Student</option>
            <option value="2">Full Time Job</option>
            <option value="3">Full Time Learner</option>
            <option value="4">Prefer Not To Say</option>
            <option value="5">Other</option>
          </select>
        </label>
        <label for="recommend">Would you recommend freeCodeCamp to a friend?</label>

          <input id="definitely" type="radio" name="recommend" class="inline" value="3"/> Definitely</label>
        <label for="maybe"><input id="maybe" type="radio" name="recommend" class="inline" value="1"/> Maybe</label>
        <label for="not-sure">
          <input id="not-sure" type="radio" name="recommend" class="inline" value="2"/> Not Sure
        </label>
        <label for="favorite-feature">What is your favorite feature of freeCodeCamp?
          <select id="referrer" name="referrer">
            <option value="5">Select an option</option>
            <option value="1">Challenges</option>
            <option value="2">Projects</option>
            <option value="3">Community</option>
            <option value="4">Open Source</option>
          </select>
        </label>
        <label for="improvement">What would you like to see improved? (Check al that apply)
         </label>
         <label for="front-end-projects">
        <input id="front-end-projects" type="checkbox" name="improvement" class="inline" value="6">Front-end Projects
          </label>
          <label for="back-end-projects">
            <input id="back-end-projects" type="checkbox" name="improvement" class="inline" value="7">Back-end Projects</label>
            <label for="data-visualiztion"><input id="data-visualization"type="checkbox" name="improvement" class="inline" value="8">Data Visualization</label>
            <label for="challenges"><input id="challenges" type="checkbox" name="improvement" class="inline" value="9">Challenges</label>
            <label for="open-source">
              <input id="open-source" type="checkbox" name="improvement" class="inline" value="10">Open Source Community</label>
              <label for="help-room"><input id="help-room" type="checkbox" name="improvement" class="inline" value="5">Gitter help rooms</label>
              <label for="videos"><input id="videos" type="checkbox" name="improvement" class="inline" value="1">Videos</label>
              <label for="meetups"><input id="meetups" type="checkbox" name="improvement" class="inline" value="2"
            >City Meetups</label>
              <label for="wiki"><input id="wiki" type="checkbox" name="improvement" class="inline" value="3">Wiki</label>
              <label for="forum"><input id="forum" type="checkbox" name="improvement" class="inline" value="4">Forum</label>
              <label for="add-courses"><input id="add-courses" type="checkbox" name="improvement" class="inline" value="5">Additional Courses</label>
<label for="comments">Any comments or suggestions?</label><textarea id="bio" name="bio" rows="5" cols="45" placeholder="Enter your comments here..."></textarea>
    </fieldset>
    <input id="submit" type="submit" value="Submit" />
  </form>
  </body>
  </html>

** end of undefined **

** start of undefined **

body {width: 100%;
  height: 100vh;
  margin: 0;
  background-color: #1b1b32;
  color: #f5f6f7;
  font-family: 'Poppins', sans-serif;
  font-size: 20px;
background-image: linear-gradient( 115deg, rgba(58, 58, 158, 0.8), rgba(136, 136, 206, 0.7) ), url(https://cdn.freecodecamp.org/testable-projects-fcc/images/survey-form-background.jpeg)
}
h1, p {
  margin: 1em auto;
  text-align: center;
  color:white
}
label {
  display: block;
  margin: 0.5rem 0;
}
form {
  width: 60vw;
  max-width: 500px;
  min-width: 300px;
  margin: 0 auto;
}
fieldset {
  border: none;
  padding: 2rem 0;
  border-bottom: 3px solid #3b3b4f;
}

input,
textarea,
select {
  margin: 10px 0 0 0;
  width: 100%;
  min-height: 2em;
}
input, textarea {
  background-color: #ffffff;
  border: 1px solid #ffffff;
  color: #ffffff;
}
.inline {
  width: unset;
  margin: 0 0.5em 0 0;
  vertical-align: middle;
}
input[type="submit"] {
  display: block;
  width: 100%;
  margin: 0 auto;
  height: 2em;
  font-size: 1.1rem;
  background-color: green;
  border-color: green;

}

fieldset {
  border: none
}

1 Like

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