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


Add Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import or require. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.


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.

              <p>Solve the CAPTCHA to continue. You have to enter a word, not a number. Once written, come out of the textbox by pressing a <kbd>Tab</kbd> key.</p>
    <strong id="captchaLabel"></strong>
    <input type="text" id="captchaText" />
  <input type="submit" value="Submit Form" />
              * {font-family: 'Segoe UI';}
label, strong {font-weight: 600; display: block;}
kbd {font-family: 'Consolas', 'Monaco', monospace; font-size: 0.8em; border: 1px solid #ccc; padding: 2px 5px; border-radius: 3px; box-shadow: 0 0 1px rgba(0, 0, 0, 0.75);}
form > input {border: 1px solid #ccc; font-size: 0.8em; cursor: pointer;}
form > input[disabled] {cursor: not-allowed; color: #999;}
              // Execute when page is loaded.
$(function () {
  // Questions & Answers.
  var qa = [
    ["What is the colour of Orange?", "orange"],
    ["What is fifteen divided by five?", "three"],
    ["Which side does the sun rise?", "east"],
    ["What is the fifth letter of alphabets?", "e"],
    ["Which planet is the first one in our Solar System?", "mercury"],
    ["What is three minus two?", "one"]
  // Disable the input.
  $("form > input").prop("disabled", true);
  // Get a random question.
  var rndQA = qa[Math.trunc(Math.random(0, 1) * qa.length)];
  // Set the label.
  // Add the event listener.
  $("#captchaText").blur(function () {
    // Verify CAPTCHA.
    var userAns = this.value.toLowerCase();
    var rightAns = rndQA[1];
    if (userAns == rightAns) {
      // User is a human.
      $(this).next("p").text("You solved it!");
    } else {
      // User is a computer.
      $(this).next("p").text("Go away bot!");
    $("form > input").prop("disabled", (userAns != rightAns));