Survey Form - Build a Survey Form

Tell us what’s happening:
Describe your issue in detail here.

  **Your code so far**
/* file: index.html */
<!DOCTYPE>
<html>
<head>
  <title>Survey Form</title>
  <link rel="stylesheet" href="styles.css" />
</head>
<body>
  <h1>Survey Form</h1>
  <p>Help us to improve this platform by filling the form</p>
  <form>
    <fieldset>
      <label>Name <input type="text"name="full-name" placeholder="Enter your name" required /></label>
    <label>Email <input type="email"name="email" placeholder="Enter your email" required /></label>
    <label>Age(optional) <input type="number" name="age" placeholder="Age" min="14" max="80" /></label>
    </fieldset>
    <fieldset>
    <label>which option best describes your current role?
     <select> 
      <option value="">select an option</option>
      <option value="1">Student</option>
      <option value="2">Full time job</option>
      <option value="3">Prefer not to say</option>
      <option value="4">Other</option>
      </select>
    </label>
    </fieldset>
    <fieldset>
      <label>would you recommend freeCodeCamp to a friend?<br>
      <input type="radio" name="definitely-maybe-not sure" value="definitely" class="inline" />Definitely<label>
        <label><input type="radio" name="definitely-maybe-not sure" value="maybe" class="inline" />Maybe</label>
        <label><input type="radio" name="definitely-maybe-not sure" value="not sure" class="inline" />Not sure</label>
      </fieldset>
      <fieldset>
        <label>What would you like to see improved?<br>
         <input type="checkbox" value="front-end" class="inline" />Front-end Projects<label>
          <label><input type="checkbox" value="back-end" class="inline" />Back-end Projects<label>
            <label><input type="checkbox" value="data visualization" class="inline" />Data Visualization</label>
        </fieldset>
        <fieldset>Any other suggestions?<label><textarea name="suggestions" rows="6" cols="30" placeholder="comments"></textarea></label>
          </fieldset>
          <input type="submit" value="submit">
    </form>
</body>
</html>
/* file: styles.css */
h1, p{
text-align: center;
margin: 1em auto; 
}
body {
width: 100%;
height: 100vh;
margin: 0;
background-color: #1b1b32;
color: #f5f6f7
}
label {
display: block;
margin: 0.5rem 0;
}
form {
width: 60vw;
max-width: 500px;
min-width: 300px;
margin: 0 auto;
}

fieldset {
border: none;
padding: 2em 0;
}
input, textarea, select {
  margin: 10px 0 0 0;
    width: 100%;
  min-height: 2em;
}
  .inline {
  width: unset;
  margin: 0 0.5em 0 0;
  vertical-align: middle;
}
  input, textarea {
  background-color: white;
  border: 1px solid #0a0a23;
  color: #ffffff;
}
input[type="submit"] {
  display: block;
  width: 60%;
  margin: 1em auto;
  height: 1em;
  font-size: 1.1rem;
  background-color: rgba(26, 223, 8, 0.926);
  min-width: 300px;
}
  **Your browser information:**

User Agent is: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/103.0.0.0 Safari/537.36

Challenge: Survey Form - Build a Survey Form

Link to the challenge:

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