# Survey Form - Build a Survey Form

**URL:** <https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/537181>\
**Category:** Curriculum Help\
**Tags:** html, css\
**Created:** [August 1, 2022, 11:09am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/537181 "2022-08-01T11:09:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas1](https://avatars.discourse-cdn.com/v4/letter/l/c67d28/32.png) [@lucas1](https://forum.freecodecamp.org/u/lucas1)\
**Post date:** [August 1, 2022, 11:09am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/537181/1 "2022-08-01T11:09:01Z")

</div>

**Tell us what’s happening:**  
You should have at least two `input` elements with a `type` of `checkbox` (checkboxes) that are descendants of `#survey-form` .  
You should have at least one `textarea` element that is a descendant of `#survey-form` .  
Your `#submit` should be a descendant of `#survey-form` . To me they seem descendants of the survey form so I do not get what is the problem. Please help.

```
   **Your code so far**

```

```html
/* file: index.html */
<!DOCTYPE html>
<html>
 <head>
   <h1 id="title">FreeCodeCamp Survey Form</h1>
   <link rel="stylesheet" href="styles.css">
 </head>
 <body>
     <p id="description">Thank you for taking the time to help us improve the platform</p>
 <fieldset>
 <form id="survey-form">
  <label id="name-label"> Name: <input id="name" type="text" placeholder="Enter your name" required/></label>
  <label id="email-label">Email: <input id="email" type="email" placeholder="Enter your email" required/></label>
  <label id="number-label">Age(optional) <input id="number" type="number" min="13" max="120" placeholder="Age"/></label>
 <label> Which option best describes your current role? <select id="dropdown" name="referrer">
    <option value="">(select current role)</option>
    <option value="2">Student</option>
    <option value="3">Full time job</option>
    <option value="4">Full time learner</option>
    <option value="5">Prefer not to say</option>
  </select>
  </label>
  </fieldset>
  <fieldset>
    Would you recommend freeCodeCamp to a friend? 
 <label> <input type="radio" value="recommend" name="recommend" class="inline"/>Definitely</label>
 <label><input type="radio" value="recommend" name="recommend" class="inline"/>Maybe</label>
 <label><input type="radio" value="recommend" name="recommend" class="inline"/>Not sure</label>
 </fieldset>
 <fieldset>
 What would you like to see improved?
<label> <input type="checkbox" name="improved" value="front-end"/>Front-end Projects</label>
 <label><input type="checkbox" name="improved" value="back-end"/>Back-end Projects</label>
 <label><input type="checkbox" name="improved" value="data-visualisation"/>Data Visualisation</label>
  <label><input type="checkbox" name="improved" value="challenges"/>Challenges</label>
   <label><input type="checkbox" name="improved" value="open-source community"/>Open Source Community</label>
    <label><input type="checkbox" name="improved" value="gitter help"/>Gitter Help Rooms</label>
   <label><input type="checkbox" name="improved" value="videos"/>Videos</label>  
   </fieldset>
   <fieldset>
   <label>Any comments or suggestions?
     <textarea name="comments" rows="3" cols="30" placeholder="Enter your comment here..."></textarea>
     </label>
     <input id="submit" type="submit" value="Submit" />
     </fieldset>
 </form>
 </body>
 </html>

```

```css
/* file: styles.css */
body {
 width: 100%;
 height: 100vh;
 margin: 0;
 background-color: #A9A9A9;
	color: #f5f6f7;
 font-family: Tahoma;
	font-size: 16px;
}

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

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

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

input[type="submit"] {
 display: block;
 width: 60%;
 margin: 1em auto;
 height: 2em;
 font-size: 1.1rem;
 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:**

> **[freeCodeCamp.org](https://www.freecodecamp.org/learn/2022/responsive-web-design/build-a-survey-form-project/build-a-survey-form)**
>
> Learn to Code — For Free

---

<div class="post-metadata">

**Author:** ![lasjorg](https://sea3.discourse-cdn.com/freecodecamp/user_avatar/forum.freecodecamp.org/lasjorg/32/280761_2.png) [@lasjorg](https://forum.freecodecamp.org/u/lasjorg)\
**Post date:** [August 1, 2022, 6:56pm UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/537181/2 "2022-08-01T18:56:59Z")

</div>

You should [validate](https://validator.w3.org/nu/#textarea) your HTML.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/freecodecamp/original/3X/e/1/e1c433102e34b46dfaa3e15d13ab9a514b127078.svg) [@system](https://forum.freecodecamp.org/u/system)\
**Post date:** [January 31, 2023, 6:57am UTC](https://forum.freecodecamp.org/t/survey-form-build-a-survey-form/537181/3 "2023-01-31T06:57:15Z")

</div>

Closed on January 31, 2023, 6:57am UTC

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