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. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource


Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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


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.

Editor Settings

Code Indentation

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

Visit your global Editor Settings.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.


                <script src=""></script>


Hello Camper!

For now, the test suite only works in Chrome! Please read the README below in the JS Editor before beginning. Feel free to delete this message once you have read it. Good luck and Happy Coding! 

- The freeCodeCamp Team 

<link rel="stylesheet" type="text/css" href="SurveyForm.css"/>

<!DOCTYPE html>
<h1 id="title">Freecodecamp Demographics</h1>

<div id="form-outer">
<p id="description">Please assist us by answering the following questions<br>
Your help is much appreciated! :)<br>
Please kindly note that all questions in this survey require a response</p>

<form id="survey-form" action="" method="post"
<div class="name">
<div class=labels><label for="name" id="name-label">Name:</label></div>
<input id="name" type="text" placeholder="Enter your name" required>

<div class="age">
<div class="labels"><label for="number" id="number-label">Age:</label></div>
<input id="number" type="number" placeholder="Enter your age" min="1"
max="130" required>

<div class="email">
<div class="labels"><label for="email" id="email-label">Email:</label></div>
<input id="email" type="email" placeholder="Enter your email" required>

<div class="list">
<div class="labels"><label id="employment" for="dropdown">What is your current employment status?</label></div>
<select id="dropdown">
  <option disabled value>Select an option</option>
  <option value="fulltime">Full-time</option>
  <option value="parttime>">Part-time</option>
  <option value="student">Full-time student</option>
  <option value="prefernot">Prefer not to say</option>
  <option value="other">Other</option>

<div class="member-duration">
<div class="labels"><label id="member" for="member-duration">How long have you been a member of Freecodecamp?</label></div>
<select id="member-duration">
  <option disabled value>Select an option</option>
  <option value="lessthan1">Less than a year</option>
  <option value="1">1 year</option>
  <option value="morethan1">More than 1 year</option>

<div class="hours-per-day">
<div class="labels>"<label for="hours-per-day">How many hours do you spend
learning with Freecodecamp on a daily basis?</label></div>
<input id="hours-per-day" type="number" placeholder="Enter your response"
min="1" max="24" required>

<div class="checkbox">
<div class="labels"><label for="checkbox">Which of the following certifications have you managed to acquired?</label></div>
<ul id="checkbox" style="list-style-type:none;">
<li><input type="checkbox" name="certificate" value="1">Responsive Web Design Certification</li>
<li><input type="checkbox" name="certificate" value="2">Javascript Algorithms And Data Structures Certification</li>
<li><input type="checkbox" name="certificate" value="3">Front End Libraries Certification</li>
<li><input type="checkbox" name="certificate" value="4">Data Visualization Certification</li>
<li><input type="checkbox" name="certificate" value="5">Apis And Microservices Certification</li>
<li><input type="checkbox" name="certificate" value="6">Information Security And Quality
Assurance Certification</li>

<div class="radio">
<div class="labels"><label for="radio">Would you recommend Freecodecamp to your family and friends?</label></div>
<ul id="radio" style="list-style-type:none;">
<li><input value="1" type="radio" name="recommend">Yes</li>
<li><input value="2" type="radio" name="recommend">No</li>

<div class="additional-comment">
<div class="labels"><label for="additional-comment">Additional improvements you would want to see:</label><br></div>
<textarea id="additional-comment" name="comment" rows="3" cols="30" placeholder="Enter your comment here..."></textarea>

<button id="submit" type="submit">Submit</button>



                /* SurveyForm.css */
@import url(',500&display=swap');

body {
  font-family: 'Comfortaa', Arial, Calibri;
  background: linear-gradient(180deg, #afeeee, #ffc0cb);
  text-align: center;
#form-outer {
  background: white;
  line-height: 50px;
  max-width: 900px;
  margin: auto;
  border-radius: 10px;
#name, #number, #email, #dropdown, #member-duration, #hours-per-day {
  width: 50%;
  height: 40px;
  margin-bottom: 30px;
#checkbox, #radio {
  text-align: left;
  margin-left: 200px;
  margin-top: -10px;
textarea {
  width: 50%;
  margin-bottom: 5px;
button {
  background: #3399ff;
  color: white;
  width: 10%;
  height: 40px;
  font-size: 20px;



                // !! 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.