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.


                <!doctype html>

  <script type="text/javascript">
    var _iub = _iub || {};
    _iub.cons_instructions = _iub.cons_instructions || [];
    _iub.cons_instructions.push(["init", {
      api_key: "4hXF27pDbQXPUyqx14smDoxU5yymGj5T"
    }, function() {
      console.log("init callBack");
  <script type="text/javascript" src=""></script>


  <form id="contact-form">
    <label>Full Name</label>
    <input type="text" name="your-name" />

    <input type="email" name="your-email" />

    <textarea rows="4" name="your-message" /></textarea>

    <div class="spacing">
      <div><input type="checkbox" name="generic" /> I've read the <a href="#">Privacy Policy</a> and
        accept the <a href="#">Terms and Conditions</a></div>
      <div><input type="checkbox" name="newsletter" /> Send me information about products, services,
        deals or recommendations by email (optional)</div>

    <button id="contact-submit">Send</button>

  <!-- load function -->
  <script type="text/javascript">
    _iub.cons_instructions.push(["load", {
      submitElement: document.getElementById("contact-submit"),
      form: {
        selector: document.getElementById("contact-form"),
        map: {
          subject: {
            full_name: "your-name",
            email: "your-email"
          preferences: {
            generic: "generic",
            newsletter: "newsletter"
      consent: {
        legal_notices: [{
            identifier: "privacy_policy",
            identifier: 'cookie_policy',
            identifier: "terms",



                * {
body {
  background: #F4F4F4;
  font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Oxygen, Ubuntu, Cantarell, Open sans, Helvetica Neue, sans-serif;
  color: #4D4D4D;
form {
  max-width: 500px;
  margin: 64px auto;
  background: #FFF;
  padding: 1.3rem;
  border-radius: 4px;
  box-shadow: 0 0 32px rgba(0,0,0,0.02);

label.error {
  display: block;
  font-size: 12px;
  color: #FF5D4D;
  margin-top: .25rem;

form > div {
  margin-bottom: .5rem;

input,textarea,button {
  padding: 1rem;
  font-size: 100%;
  border-radius: 4px;
  border: 1px solid rgba(0,0,0,0.1);
  box-shadow: 0 1px 0 0 rgba(0,0,0,0.02);
  font: inherit;

label {
  margin-bottom: 10px;

input+label, div.spacing { 

.field, div.spacing {
  margin-bottom: 25px;
  clear: both;

div.spacing div+div {

.field input[type=checkbox] {
  float: left;
  margin-right: 8px;

input[type=text], input[type=email], textarea {
  width: 100%;

input:focus {
  outline: 0;
  border-color: #1CC691;

button {
  background: #1CC691;
  color: #FFF;
  cursor: pointer;

.text-right {
  text-align: right;