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.


  <!--  Added the <main> to keep Axe, ARC, WAVE from complaining.  -->
  <h1>What Happens with Nested Fake Headings</h1>

    This is a custom element with <code>role="heading"</code> and <code>aria-level="2"</code>. It contains a <code>&lt;div&gt;</code> with <code>role="group"</code>. That <code>&lt;div&gt;</code> contains another custom element with <code>role="heading"</code> but with <code>aria-level="3"</code>.

  <custom-element role="heading" aria-level="2">
    <div role="group" aria-label="Expanded region">
      <custom-label role="heading" aria-level="3">
        A Fake Level 3 Heading
    The following code shows that same construct in HTML. An <code>&lt;h3&gt;</code> nested in a <code>&lt;section&gt;</code> nested in a <code>&lt;h2&gt;</code>.

    <section aria-label="Expanded region">
        A Real Level 3 Heading
    Neither of these constructs is valid. Test with your favorite automated testing tools to see which gets flagged.


                body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto,
    Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  line-height: 1.4;
  /*   line-height: 1.5; */
  /*   letter-spacing: 0.12em; */
  /*   word-spacing: 0.16em; */

h1, h2, h3, [role="heading"] {
  font-size: 2rem;

h2, [role="heading"][aria-level="2"] {
  font-size: 1.5rem;

h3, [role="heading"][aria-level="3"] {
  font-size: 1.17rem;