Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <main>
  <h1>Article Title</h1>
  Lorem ipsum dolor,<a href=""> sit amet consectetur</a> adipisicing elit. Voluptas autem voluptate temporibus, possimus quo accusantium nobis soluta ratione officia. Dolore repudiandae laudantium eligendi reprehenderit consequatur harum iusto, cum velit autem?
  <h2>Lorem ipsum dolor sit amet, consectetur adipisicing elit.</h2>
  <p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Harum beatae natus illum nihil necessitatibus animi laborum voluptas unde ullam velit soluta rerum maiores, earum quae facere <a href="">iste, quo eos fuga?</a></p>
  <h2>Aut quae pariatur rem architecto repellendus sapiente earum?</h2>
  <p>Porro provident similique impedit iste, eos commodi! Cumque iste nihil qui, placeat magnam autem culpa voluptate laudantium ea quis quia fuga reprehenderit facilis. Quia corrupti <a href="">voluptatum accusantium doloribus</a> architecto quaerat?</p>
  <h3>Officiis temporibus quasi iste numquam eum quis doloremque?</h3>
  <p>Dignissimos minima ipsum ipsa eligendi, distinctio, iste eveniet ducimus ullam molestiae tempora optio quia quos quidem soluta quaerat consequatur beatae sint natus non ad quis quibusdam assumenda. Numquam, expedita adipisci?</p>
  <h2>Provident quos ex ipsum <a href="">explicabo veritatis</a> repellendus labore.</h2>
  <p>Optio aperiam, inventore velit temporibus porro, nostrum nemo voluptatibus animi dolor, nulla cum ratione eveniet sapiente molestias officia alias laudantium. Impedit, inventore! Soluta id nostrum magni alias odio, eum vel.</p>
</main>
              
            
!

CSS

              
                body {
  font: 300 90%/1.4 system-ui;
  margin: 1rem;
}
main :is(h1, h2, h3, a) {
  color: #f06d06;
}

              
            
!

JS

              
                
              
            
!
999px

Console