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.


                <h2>Links are natively focusable</h2>
<a href="#">Actual Link with no changed tabindex</a>
<a href="#" tabindex="-1" id="focusMe">tabindex -1 causes this to only be focusable by script</a>
<button onclick="focusOnLink()">Focus on the tabindex -1 link</button>

<h2>What about non-native elements?</h2>
<h3 tabindex="0">Focusable Heading by tabindex 0</h3>
<div tabindex="0">This is a focusable div</div>

<h2>What about tab index values greater than 0?</h2>
<div tabindex="2">Tabindex values greater than 0 could require managing the tab order for the whole page</div>
<div tabindex="1">Which one comes first, this one or the previous one?</div>



                body {
	font-family: proxima nova;
	font-size: 16px;
	font-weight: 600;
	line-height: 1.5;
	color: #53555C;

h1,h2,h3 {
	color: #FF5E99;
a {
  color: #01a9b4;
a:hover, a:focus {
  color: #f3787e;


                function focusOnLink() {