Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. You can use the CSS from another Pen by using it's URL and the proper URL extention.

+ add another resource


Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource


Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.


Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.


                <html lang="en">

  <meta charset="UTF-8">
  <title>FCC: Survey Form</title>
  <script src=""></script>

  <header class="header">
    <h1 id="title" class="text-center">Survey Form</h1>
    <p id="description" class="description text-center">Thank you for taking the time to help us improve the platform</p>
  <form id="survey-form">
    <div class="form-group">
      <label id="name-label" for="name">Name</label>
      <input type="text" name="name" id="name" class="form-control" placeholder="Enter your name" required />
    <div class="form-group">
      <label id="email-label" for="email">Email</label>
      <input type="email" name="email" id="email" class="form-control" placeholder="Enter your email" required />
    <div class="form-group">
      <label id="number-label" for="number">Age (optional)</label>
      <input type="number" name="number" id="number" min="10" max="99" class="form-control" placeholder="Age" required />
    <div class="form-group">
      <p>Which option best describes your current role?</p>
      <select id="dropdown" name="role" class="form-control" required>
        <option disabled selected value>Select current role</option>
        <option value="student">Student</option>
        <option value="fulltime">Full Time Job</option>
        <option value="learner">Full Time Learner</option>
        <option value="preferNo">Prefer not to say</option>
        <option value="other">Other</option>
    <div class="form-group">
      <p>Would you recommend freeCodeCamp to a friend?</p>
        <input name="user-recommended" value="definitely" type="radio" class="input-radio" checked />Definitely</label>
        <input name="user-recommended" value="maybe" type="radio" class="input-radio" />Maybe</label>
        <input name="user-recommended" value="not-sure" type="radio" class="input-radio" />Not sure</label>
    <div class="form-group">
      <p>What is your favorite feature of freeCodeCamp?</p>
      <select id="most-like" name="mostLike" class="form-control" required>
        <option disabled selected value>Select an option</option>
        <option value="challenges">Challenges</option>
        <option value="projects">Projects</option>
        <option value="community">Community</option>
        <option value="open-source">Open Source</option>
    <div class="form-group">
      <p>What would you like to see improved?
        <span class="clue">(Check all that apply)</span></p>
      <label><input name="prefer" value="front-end-projects" type="checkbox" class="input-checkbox" />Front-end Projects</label>
      <label><input name="prefer" value="back-end-projects" type="checkbox" class="input-checkbox" />Back-end Projects</label>
      <label><input name="prefer" value="data-visualization" type="checkbox" class="input-checkbox" />Data Visulaization</label>
      <label><input name="prefer" value="challenges" type="checkbox" class="input-checkbox" />Challenges</label>
      <label><input name="prefer" value="open-source-community" type="checkbox" class="input-checkbox" />Open Source Community</label>
      <label><input name="prefer" value="gitter-help-rooms" type="checkbox" class="input-checkbox" />Gitter help rooms</label>
      <label><input name="prefer" value="videos" type="checkbox" class="input-checkbox" />Videos</label>
      <label><input name="prefer" value="city-meetups" type="checkbox" class="input-checkbox" />City Meetups</label>
      <label><input name="prefer" value="wiki" type="checkbox" class="input-checkbox" />Wiki</label>
      <label><input name="prefer" value="forum" type="checkbox" class="input-checkbox" />Forum</label>
      <label><input name="prefer" value="additional-courses" type="checkbox" class="input-checkbox" />Additional Courses</label>
    <div class="form-group">
      <p>Any comments or suggestions?</p>
      <textarea id="comments" class="input-textarea" name="comment" placeholder="Enter your comment here..."></textarea>
    <div class="form-group">
      <button type="submit" id="submit" class="submit-button">Submit</button>


                :root {
  --color-white: #f3f3f3;
  --color-darkblue: #1b1b32;
  --color-darkblue-alpha: rgba(27, 27, 50, 0.8);
  --color-green: #37af65;

*::after {
  box-sizing: border-box;

body {
  font-family: 'Poppins', sans-serif;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.4;
  color: var(--color-white);
  margin: 0;

body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  z-index: -1;
  background: var(--color-darkblue);
  background-image: linear-gradient(
    rgba(58, 58, 158, 0.8),
    rgba(136, 136, 206, 0.7)
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;

h1 {
  font-weight: 400;
  line-height: 1.2;

p {
  font-size: 1.125rem;

p {
  margin-top: 0;
  margin-bottom: 0.5rem;

label {
  display: flex;
  align-items: center;
  font-size: 1.125rem;
  margin-bottom: 0.5rem

textarea {
  margin: 0;
  font-family: inherit;
  font-size: inherit;
  line-height: inherit;

button {
  border: none;

.container {
  width: 100%;
  margin: 3.125rem auto 0 auto;

@media (min-width: 576px) {
  .container {
    max-width: 540px;

@media (min-width: 768px) {
  .container {
    max-width: 720px;

.header {
  padding: 0 0.625rem;
  margin-bottom: 1.875rem;

.description {
  font-style: italic;
  font-weight: 200;
  text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.4);

.clue {
  margin-left: 0.25rem;
  font-size: 0.9rem;
  color: #e4e4e4;

.text-center {
  text-align: center;

form {
  background: var(--color-darkblue-alpha);
  padding: 2.5rem 0.625rem;
  border-radius: 0.25rem;  
  width: 50%;
  margin: 0 auto;

@media (min-width: 480px) {
  form {
    padding: 2.5rem;

.form-group {
  margin: 0 auto 1.25rem auto;
  padding: 0.25rem;

.form-control {
  display: block;
  width: 100%;
  height: 2.375rem;
  padding: 0.375rem 0.75rem;
  color: #495057;
  background-color: #fff;
  background-clip; padding-box;
  border: 1px solid #ced4da;
  border-radius: 0.25rem;
  transition: border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;

.form-control:focus {
  border-color: #80bdff;
  outline: 0;
  box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25)

.input-checkbox {
  display: inline-block;
  margin-right: 0.625rem;
  min-height: 1.25rem;
  min-width: 1.25rem;

.input-textarea {
  min-height: 120px;
  width: 100%;
  padding: 0.625rem;
  resize: vertical;

.submit-button {
  display: block;
  width: 100%;
  padding: 0.75rem;
  background: var(--color-green);
  color: inherit;
  border-radius: 2px;
  cursor: pointer;


                // !! IMPORTANT README:

// You may add additional external JS and CSS as needed to complete the project, however the current external resource MUST remain in place for the tests to work. BABEL must also be left in place. 

  - Select the project you would 
    like to complete from the dropdown 
  - Click the "RUN TESTS" button to
    run the tests against the blank 
  - Click the "TESTS" button to see 
    the individual test cases. 
    (should all be failing at first)
  - Start coding! As you fulfill each
    test case, you will see them go   
    from red to green.
  - As you start to build out your 
    project, when tests are failing, 
    you should get helpful errors 
    along the way!

// PLEASE NOTE: Adding global style rules using the * selector, or by adding rules to body {..} or html {..}, or to all elements within body or html, i.e. h1 {..}, has the potential to pollute the test suite's CSS. Try adding: * { color: red }, for a quick example!

// Once you have read the above messages, you can delete all comments.