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


                <h1>This is the h1</h1>
<h2>This is the h2</h2>
<h1>This is another h1</h1>
<p>This is a paragraph of text. Inside of it I put a <span>span</span> that can be styled differently too. Here's <span>another span</span> too. Some pretty cool stuff.</p>
  <h3>Here's an h3</h3>
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Fugit facilis vitae necessitatibus, id ratione reprehenderit quam illum ab quibusdam laborum quis et ea voluptates asperiores ex quaerat aliquid esse cumque?</p>
  <li>List Item 1</li>
  <li>List Item 2</li>
  <li>List Item 3</li>
  <li>List Item 4</li>
  <li>List Item 5</li>
  <li>List Item 1</li>
  <li>List Item 2</li>
  <li>List Item 3</li>
  <li>List Item 4</li>
  <li>List Item 5</li>
<h2>This is the h2 at the end of the page</h2>


                h1 {
  font-family: Helvetica;
  color: red;
  font-size: 50px;
  text-align: right;

h2 {
  font-family: Monaco;
  color: seagreen;
  font-size: 40px;
  border: 9px dotted gray;
  text-align: center;

p {
  font-family: Comic Sans MS;
  font-size: 30px;
  background-color: black;
  color: white;

div {
  color: blue;

span {
  color: yellow;
  text-decoration: underline;
  font-style: italic;

ol {
  list-style: upper-roman;

ul {
  list-style: square;

li {
  color: brown;