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.

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.


                <!-- Pen for Free Code Camp: Build Survey Form -->
<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 -->
<!-- Header -->
<div class="container">
   <h1 id="title">Responsive Web Design Projects - Build a Survey Form</h1>
   <p id="description">Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet quo porro iusto quaerat ugiat. Asperiores atque facere sed ipsa fugiat minus quisquam excepturi suscipit eligendi. Lorem, ipsum dolor sit amet consectetur adipisicing elit. Nemo neque ratione
      dicta, eveniet fugiat ipsum incidunt sit fugit porro animi, eos et, non quas nesciunt. </p>
<!-- Form -->
<div class="container main-container">
   <div class="card text-center main-card" style="width: 60rem;">
      <form id="survey-form" action="" method="get" class="form-example">
         <div class="form-example">
            <label for="name" id="name-label">Enter your name: </label>
            <input type="text" name="name" id="name" placeholder="Your Name here!" required>
            <div class="form-example">
               <label for="email" id="email-label">Enter your email:</label>
               <input type="email" name="email" id="email" placeholder="Your Email here!" required>
               <label for="number" id="number-label">Number: 1 to 100</label>
               <input type="number" id="number" name="number" min="1" max="100" placeholder="Pick a Number from 1 to 100">
         <!-- Dropdown -->
         <div class="dropdownArea">
            <label for="dropdown">Dropdown:</label>
            <select id="dropdown">
             <option value="#">--Please choose an option--</option>
             <option value="first">First</option>
             <option value="second">Second</option>
             <option value="third">Third</option>
         <!-- Radio Vertical-->
         <div class="radioVert">
            <p>Select a Button:</p>
               <input type="radio" id="john" name="name" value="john" checked>
               <label for="john">John</label>
               <input type="radio" id="dick" name="name" value="dick">
               <label for="dick">Dick</label>
               <input type="radio" id="harry" name="name" value="harry">
               <label for="harry">Harry</label>
         <!-- Radio Horizontal -->
            <p>Please select your preferred contact method:</p>
            <input type="radio" id="contactChoice1" name="contact" value="email">
            <label for="contactChoice1">Email</label>
            <input type="radio" id="contactChoice2" name="contact" value="phone">
            <label for="contactChoice2">Phone</label>
            <input type="radio" id="contactChoice3" name="contact" value="mail">
            <label for="contactChoice3">Mail</label>
         <!-- Checkbox -->
         <div class="check">
               <p>Choose your Language:</p>
               <input type="checkbox" id="css" name="css" value="css" checked>
               <label for="css">CSS</label>
               <input type="checkbox" id="javascript" name="javascript" value="javascript">
               <label for="javascript">Javascript</label>
               <input type="checkbox" id="python" name="python" value="python">
               <label for="python">Python</label>
               <p>Choose your Editor:</p>
               <input type="checkbox" id="css" name="vscode" value="vscode" checked>
               <label for="vscode">VS Code</label>
               <input type="checkbox" id="sublime-text" name="sublime-text" value="sublime-text">
               <label for="sublime-text">Sublime Text</label>
               <input type="checkbox" id="code-pen" name="code-pen" value="code-pen">
               <label for="code-pen">Code Pen</label>
         <!-- Textarea -->
         <div class="textarea">
            <label for="text">Leave a Comment:</label>
            <textarea id="pentext" name="pentext" rows="5" cols="15"> Does this Pen Suck?
         <!-- Submit Button -->
            <button id="submit" class="btn btn-success" type="submit">Submit</button>


                body {
   margin: 20px 0 50px 0;
   background-color: #39CBCB;
hr {
    border: none;
    border-top: 3px double #0B1470;
    color: #0B1470;
    overflow: visible;
    text-align: center;
    height: 5px;
      margin: 0 40px 0 40px;
hr:after {
    background: #fff;
    padding: 0 4px;
    position: relative;
    top: -13px;
.main-container {
   padding: 20px;
.main-card {
   padding: 20px;
.dropdownArea, .radioVert, .check {
  margin: 20px 0 20px 0;
fieldset {
  -webkit-appearance: none;
  width : 100%;
  border: 1px solid #333;
  margin: 0; 
  font-family: inherit;
  font-size: 90%;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
input:invalid {
  box-shadow: 0 0 5px 1px red;
input:focus:invalid {
  outline: none;