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.


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.


  <img alt="Photo of Disco from this weekend" src="" alt="">
  <figcaption>Photo of Disco from this weekend.</figcaption>

<h1>Doodle Dog Diaries</h1>
<h2>July 15, 2020</h2>

<p>Disco had a really fun weekend in Long Island. The grass was finally getting lush, and he absolutely loved being outside and finding all of the best sticks to chew on. It was such a joy to see him run around in the suburbs! We'll need to get out to big grassy fields more often.</p>


                img {
  max-width: 300px;

figure {
  float: left;
  margin: 0 1rem 0 0;

figcaption {
  font-style: italic;
  background: #e8e8e8;
  padding: 0.5em;
  text-align: center;
  margin-top: -0.25em;

body {
  font-family: system-ui, serif;
  margin: 0 auto;
  max-width: 600px;

p {
  line-height: 1.5;