Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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

              
                <script src="https://cdn.freecodecamp.org/testable-projects-fcc/v1/bundle.js"></script>
<h1 id="title">Survey Form</h1>
<p id="description">Let us know how we can improve freeCodeCamp</p>
     <form id="survey-form">
      <fieldset id="top">
        <legend>Personal information:</legend>
        <span class="form-group"><label id="name-label" for="name">Name: </label><input id="name" type="text" required placeholder="Enter you name"></span>
        <span class="form-group"><label id="email-label" for="email">Email: </label><input id="email" type="email" required placeholder="Enter you Email"></span>
        <span class="form-group"><label id="number-label" for="number">Age: </label><input id="number" type="number" min="0" max="130" placeholder="Enter you age"></span>
      </fieldset>
      <fieldset>
      <span class="form-group">
      <label id="dropdown-label" for="dropdown">Which option best describes your current role?</label>
      <select id="dropdown">
          <option>Student</option>
          <option>Full Time Job</option>
          <option>Full Time Learner</option>
          <option>Prefer not to say</option>
          <option>Other</option>
        </select>
      </span>
      </fieldset>
      <fieldset>
        <label id="dropdown-label">How likely is that you would recommend freeCodeCamp to a friend?</label>
        <span class="form-group checker">
        <input id="definitely" type="radio" name="recommendations" value="definitely">
        <label for="definitely">Definitely</label>
        </span>
        <span class="form-group checker">
        <input id="maybe" type="radio" name="recommendations" value="maybe">
        <label for="maybe">Maybe</label>
        </span>
        <span class="form-group checker">
        <input id="not" type="radio" name="recommendations" value="not">
        <label for="not">Not sure</label>
        </span>
    </fieldset>
    <fieldset>
        <span class="form-group">
        <label id="like-dropdown-label">What do you like most in FCC: </label>
        <select id="like-dropdown">
          <option>Challenges</option>
          <option>Projects</option>
          <option>Community</option>
          <option>Open Source</option>  
        </select>
        </span>
      </fieldset>
      <fieldset>
       <label id="check-label">Things that should be improved in the future
(Check all that apply): </label>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="Front-end">
            <label>Front-end Projects</label>
            </span>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="Back-end">
            <label>Back-end Projects</label>
            </span>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="Data Visualization">
            <label>Data Visualization</label>
            </span>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="Challenges">
            <label>Challenges</label>
            </span>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="Open Source Community">
            <label>Open Source Community</label>
            </span>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="Gitter help rooms">
            <label>Gitter help rooms</label>
            </span>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="Videos">
            <label>Videos</label>
            </span>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="City Meetups">
            <label>City Meetups</label>
            </span>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="Wiki">
            <label>Wiki</label>
            </span>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="Forum">
            <label>Forum</label>
            </span>
            <span class="form-group checker">
            <input type="checkbox" name="improvements" value="Additional Courses">
            <label>Additional Courses</label>
            </span>
      </fieldset>
      <fieldset>
      <span class="form-group">
      <label id="comments-label">Any Comments or Suggestions?</label>
        <textarea id="comment" placeholder="Enter your comment here..." rows="5"></textarea>
      </span>
        <input type="submit" value="Submit" id="submit">
     </fieldset>
       
    </form>
    <footer class="text-center">
      Made by <a href="https://www.freecodecamp.com/radekjohn" target="_blank">Radek John</a>.
    </footer>
              
            
!

CSS

              
                body {
  color: #343e3d;
  *background-color: #aedcc0;
  display: flex;
  flex-direction: column;
  align-items: center;
}
fieldset {
  display: flex;
  flex-direction: column;
  margin: 5%;
}
input {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.form-group {
  display: flex;
  flex-direction: column;
}
.checker {
  display: grid;
  grid-template-columns: 10% 5% 75%;
  align-items: top;
  white-space: nowrap;
}
#survey-form {
  *background-color: #7bd389;
}

              
            
!

JS

              
                
              
            
!
999px

Console