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

              
                <div class="body" hidden aria-hidden="true">
  <h1>
    100% accessible
  </h1>
  
  <p>
    <a href="https://www.matuzo.at/blog/building-the-most-inaccessible-site-possible-with-a-perfect-lighthouse-score/" rel="noopener" tabindex="-1">Read the article</a>
  </p>

    <p>
    <!-- start slipsum code -->
    Well, the way they make shows is, they make one show. That show's called a pilot. Then they show that show to the people who make shows, and on the strength of that one show they decide if they're going to make more shows. Some pilots get picked and become television programs. Some don't, become nothing. She starred in one of the ones that became nothing.
  <!-- end slipsum code -->
</p> 

  <ul>
    <li>CSS only</li>
    <li>JS only</li>
    <li>Screen reader users</li>
    <li>Keyboard users</li>
    <li>High contrast mode</li>
    <li>Mouse users</li>
    <li>Readability</li>
    <li>Reader mode</li>
    <li>Source</li>
  </ul>
  
  <form action="#form">
    <p>
      <label for="text">Dummy form</label><br>
      <input type="text" id="text" tabindex="-1">
    </p>
    <button tabindex="-1">Send</button>
  </form>
  
  <p>
    <!-- start slipsum code -->
    You think water moves fast? You should see ice. It moves like it has a mind. Like it knows it killed the world once and got a taste for murder. After the avalanche, it took us a week to climb out. Now, I don't know exactly when we turned on each other, but I know that seven of us survived the slide... and only five made it out. Now we took an oath, that I'm breaking now. We said we'd say it was the snow that killed the other two, but it wasn't. Nature is lethal but it doesn't hold a candle to man.
    <!-- end slipsum code -->
  </p> 
</div>
              
            
!

CSS

              
                *:focus {
  outline: 0 !important;
}

.loaded {
  display: block;
}
              
            
!

JS

              
                document.querySelector('.body').classList.add('loaded');

document.addEventListener('keydown', function(e) {
  e.preventDefault();
})
              
            
!
999px

Console