Pen Settings



CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URLs 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 its URL and the proper URL extension.

+ 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.


Auto Save

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.


                <marquee bgcolor="black" behavior="scroll" direction="left" scrolldelay="200" scrollamount="10" width="100%"> <font color="lime" face="Comic Sans MS" size="+3">Thanks to <img src="" alt="Advertising IE the browser we love to hate on"> we have some lovely ancient markup that just won't stop...<font></marquee>
<marquee id="crazy" bgcolor="red" behavior="alternate" direction="up" height="300" width="40%">
  <table cellpadding="10">
      <td bgcolor="white" align="center">Marquee is crazier than you thought pile in ancient markup like a madman and yet it still works today!</td>
      <td><img src="" alt="Forever Under Consruction"></td>





                setInterval(changeMarquee, 2000);

function changeMarquee() {
  var colors = ['red', 'green', 'orange', 'yellow'];
  var directions = ['up', 'down', 'right', 'center'];
  /* How dare I!?! Using an expando like some 90s maniac, because I wasn't going to document.all it! */
  crazy.bgColor = colors[Math.floor(Math.random() * 4)];
  crazy.direction = directions[Math.floor(Math.random() * 4)];