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.


                <h1>Accessible buttons</h1>
<h2>Button with <abbr title="screen reader only">sr-only</abbr> class</h2>
<button name="help">
  <span aria-hidden="true">?</span>
  <span class="sr-only">Help</span>

<h2>Button with aria-label</h2>
<button name="help" aria-label="Help">
  <span aria-hidden="true">?</span>

<h2>Input type="button" with sr-only label</h2>
<input type="button" value="?" id="help">
<label for="help" class="sr-only">Help</label>

<h2>Clickable image with alt text</h2>
<a href="#" role="button">
  <img src="" width="25" alt="Help">

<h2>Icon with screen reader only class</h2>
<button name="help">
  <span class="fa fa-question" aria-hidden="true"></span>
  <span class="sr-only">Help</span>


                body {
  margin: 20px 40px;

abbr {
  border-bottom: .1em dotted;

button, input[type="button"] {
  padding: 4px 8px;

/* Bootstrap's screen reader only class  */

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: polygon(0 0);
  border: 0;