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.


                <a href="#pageTitle" class="skip-link">Skip to content</a>

  <h1 tabindex="-1" id="pageTitle"><span>Hello</span></h1>


                /* Basic reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: sans-serif;

/*  I want the skip link to overlay page content when visible, so I'll set it as position: absolute;, but first I need to set the body element to position: relative; */
body {
  position: relative;

/*  I'm setting the outline to invisible here, as the skip link being visible is the focus indicator, in this case */
.skip-link:focus {
  outline: transparent solid 2px;

/*  Page styles */
main {
  padding: 2rem;

.skip-link {
  position: absolute;
  display: inline-block;
  padding: .375rem .75rem;
  line-height: 1;
  font-size: 1.25rem;
  background-color: rebeccapurple;
  color: white;

.skip-link:not(:focus) {
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);

h1 span {
  display: inline-block; 
  padding: .25rem .5rem;

h1 {
  text-align: center;
  font-size: 2.5rem;
  line-height: 1.5;

/* Just to be helpful, add a visual indicator to show focus is on the page title */
h1:focus span {
  outline: 2px solid rebeccapurple;

/*  Hide the browser focus ring, we don't need 2 */
h1:focus {
  outline: 2px solid transparent;