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

You're using npm packages, so we've auto-selected Babel for you here, which we require to process imports and make it all work. If you need to use a different JavaScript preprocessor, remove the packages in the npm tab.

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

Use npm Packages

We can make npm packages available for you to use in your JavaScript. We use webpack to prepare them and make them available to import. We'll also process your JavaScript with Babel.

⚠️ This feature can only be used by logged in users.

Code Indentation


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.

HTML Settings

Here you can Sed posuere consectetur est at lobortis. Donec ullamcorper nulla non metus auctor fringilla. Maecenas sed diam eget risus varius blandit sit amet non magna. Donec id elit non mi porta gravida at eget metus. Praesent commodo cursus magna, vel scelerisque nisl consectetur et.

              <h1>description role example with flowto/flowfrom relationship</h1>
<h2>How this works</h2>
<p>Firefox implements the Ia2 <a href="http://accessibility.linuxfoundation.org/a11yspecs/ia2/docs/html/group__grp_relations.html">flowto/flowfrom</a> relationships. Developers can set the relationship by using the <a href="http://www.w3.org/TR/wai-aria-1.1/#aria-flowto"><code>aria-flowto</code></a> attribute with a value matching the <code>id</code> value of another element. JAWS announces when an element has a <code>flowto</code> relationship "has flows to" and provides navigation to the start of the element using the = key. The reverse relationship "flowfrom" is also announced (after content has been announced)"has flows from" and the user can navigate back to the target using the shift+equals keys.</p>
<p><b>notes:</b><ul><li> the markup in this example uses a <code>role=group</code> and <code>aria-label="description"</code> to emulate the role announcement.
<li>When the user presses the <code>=</code> key JAWS moves the virtual cursor to a point immediately prior to the target, so the user must arrow down before the content is announced.
<li> <a href="https://codepen.io/stevef/pen/PPXZWY">code pen</a> </ul>
<p><img src="http://www.html5accessibility.com/images/HTML5_Logo.png" alt="HTML5" aria-flowto="desc"></p>
<p><h2>intervening content in DOM</h2>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec accumsan libero quis arcu semper, quis auctor lacus laoreet. Cras a vestibulum sem. Aliquam erat volutpat. Vestibulum ornare ut quam vitae iaculis. Nam sollicitudin lacus in risus volutpat, sit amet porttitor libero blandit. Pellentesque facilisis, ipsum in tincidunt dignissim, nunc nunc consequat enim, eget pellentesque purus urna eu felis. Maecenas sodales elit metus, id dignissim neque pretium eu. Integer in malesuada sapien. Nullam et purus et lectus volutpat finibus in nec risus. Donec fermentum erat libero, id porta nibh porta sed. Nam bibendum ligula ut ante iaculis rhoncus. 

<div id="desc" role="group" aria-label="Description"><h2>description text</h2><p>HTML5 logo: Shaped like a shield with the text 'HTML' above and the numeral '5'
  prominent on the face of the shield.</p>

		font-family: arial, Verdana, helvetica, sans-serif;
		color: #111;
		background: #D6D6AB;
		padding: 0;

🕑 One or more of the npm packages you are using needs to be built. You're the first person to ever need it! We're building it right now and your preview will start updating again when it's ready.