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.


                   <!DOCTYPE html>
    <title>Parcel Sandbox</title>
    <meta charset="UTF-8" />
    <link rel="stylesheet" type="text/css" href="./src/styles.css" />

    <a id="skip-link" href="#maincontent">Skip to main content</a>
      <a href="#">Home</a>
      <a href="#">About</a>
      <a href="#">Contact</a>
      <a href="#">Donate</a>
      <a href="#">Location</a>
      <a href="#">Careers</a>
    <main role="main" id="maincontent">
      This is our great main content
      <button>Follow us on the web</button>

    <script src="src/index.js"></script>



                body {
  font-family: sans-serif;
  padding: 0 250px;

nav {
  display: flex;
  justify-content: space-between;
  margin-top: 50px;
  border: 1px solid black;
  padding: 10px;

nav a {
  color: #333;

main {
  display: flex;
  flex-direction: column;
  border: 1px solid black;
  padding: 50px;

button {
  padding: 10px;
  background-color: aliceblue;
  border: none;
  margin-top: 250px;
  font-family: cursive;
  font-size: 20spx;

a#skip-link {
  position: absolute;
  padding: 10px;
  border: 1px solid black;
  background: #00aced;
  text-decoration: none;
  color: #fff;
  left: 250px;
  top: 10px;
  visibility: hidden;


                let showSkiplink = true;
const skipLink = document.querySelector('#skip-link');

function checkTabPress(e) {
    'use strict';
    // get a reference to active element
    var ele = document.activeElement;
    // our boolean showSkipLink is true so we haven't shown it already
    if(showSkiplink) {
       // if the keycode is tab we are on a a element
       if (e.keyCode === 9 && ele.nodeName.toLowerCase() === 'a') {
          // show our skip link
          // focus the skip link
          // from here on out we don't want to show it
          showSkiplink = false;
    } else { ='hidden';

document.addEventListener('keyup', function (e) {
}, false);