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.


  <h1><a href="#">Sitename</a></h1>
      <li><a href="#">Page</a></li>
      <li><a href="#">Page</a></li>
      <li><a href="#">Page</a></li>

<section class="main">
  <p>Quisque sagittis tincidunt luctus. Cras tincidunt odio eget purus rhoncus facilisis at id leo. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Suspendisse quis mollis ipsum. Nunc in odio eu felis pellentesque elementum quis id ligula. Vivamus quis justo lorem.</p>
  <p>Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Phasellus lectus mi, pulvinar ac elementum aliquam, consequat scelerisque dui. Etiam at felis felis, quis ullamcorper enim. Fusce mollis, odio et gravida interdum, risus nisl convallis velit, nec porttitor sem odio sed enim.</p>
  <p>Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Etiam tellus tortor, pellentesque ultrices hendrerit a, dignissim id magna. Suspendisse et sem nec felis rhoncus laoreet ut eget orci.</p>

  Read related article on <a href=""></a>


                html {
  background-color: #fefefe;

body {
  width: 600px;
  margin: 0 auto;

body:before {
  content: '';
  height: 3em;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: -1;
  background-color: #000;

header {
  height: 3em;
  margin-bottom: 1em;
  line-height: 3em;

header a {
  color: #fff;
  text-decoration: none;

header h1 {
  float: left;

header nav {
  float: right;
  list-style: none;

header nav li {
  display: inline-block;

p {
  margin-bottom: 0.75em;

footer {
  margin-top: 1em;
  padding: 0.5em 0 1em;
  border-top: 1px solid #000;