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>

  <h1 id="title">Survey for freeCodeCamp</h1>
  <p id="description">Please fill out this survery and enter to win a free Tshirt.</p>
  <form id="survey-form">
    <label for="name" id="name-label">Your name: </label>
    <input type="text" id="name" name="name" placeholder="John Doe" required>
    <label for="email" id="email-label">Your email: </label>
    <input type="email" id="email" name="email" placeholder="" required>
    <label for="number" id="number-label">Number of certificates you've earned on freeCodeCamp:</label>
    <input type="number" id="number" name="certs" min="0" max="6" placeholder="0">
    <label for="dropdown">Where do you live:</label>
    <select name="continent" id="dropdown">
      <option value="africa">Africa</option>
      <option value="antarctica">Antarctica</option>
      <option value="asia">Asia</option>
      <option value="australia">Australia</option>
      <option value="europe">Europe</option>
      <option value="northamerica">North America</option>
      <option value="southamerica">South America</option>
    <label>How do you stay connected?</label><br>
    <div id="check">
      <div><input type="checkbox" name="check1" value="text"> Texting</div>
      <div><input type="checkbox" name="check2" value="email"> E-mail</div>
      <div><input type="checkbox" name="check3" value="facebook"> Facebook</div>
      <div><input type="checkbox" name="check4" value="twitter"> Twitter</div>
      <div><input type="checkbox" name="check5" value="inst"> Instagram</div>
    <label for="newsletter">Do you want to receive our Newsletter?</label><br>
    <input type="radio" id="newsletter" name="news" value="yes"> Yes&nbsp;
    <input type="radio" id="newsletter" name="news" value="no"> No
    <label for="textarea">What do you like about our camp or think we could improve?</label><br>
    <textarea name="message"></textarea><br>
    <input type="submit" id="submit" value="Submit">


                @import url('');
body {
  background: #006400;
main {
  font-family: sans-serif;
  padding: 10px 20px;
  background-color: #c3dec3;
  max-width: 560px;
  margin: auto;
#title {
  font-family: 'Nanum Gothic Coding', monospace;
  font-size: 40px;
  padding: 10px 0 30px 0;
input, select, textarea {
  margin: 0 0 20px 0;
  padding: 3px;
  font-size: 16px;
#name, #email, #number {
  margin: 0 0 14px 0;
#check {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
textarea {
  width: 80%;
  height: 100px;
#submit {
  padding: 5px;
  border: 1px solid #006400;
  border-radius: 5px;
  box-shadow: 2px 2px 5px;
  cursor: pointer;
  width: 70px;
#submit:hover {
  box-shadow: 2px 2px 15px;