Pen Settings

HTML

CSS

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

JavaScript

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

Packages

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.

Behavior

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.

HTML

              
                <h1>check for accesskey and aria-keyshortcuts bookmarklet</h1>
<p>Made this to quickly check for presence of <code>accesskey</code> and <code>aria-keyshortcuts</code> attributes to help in testing <a href="https://www.w3.org/TR/WCAG22/#character-key-shortcuts">WCAG 2.2 Success Criterion 2.1.4 Character Key Shortcuts</a>
<p><a href="javascript:(function(){var a=document.querySelectorAll('[aria-keyshortcuts]'),b=document.querySelectorAll('[accesskey]'),c=0;a.forEach(function(d){var e=document.createElement('span');e.setAttribute('aria-hidden', 'true');e.textContent=' ⌨️',d.style.position='relative',e.style.position='absolute',e.style.right='0',e.style.top='1em',d.appendChild(e),d.style.border='2px dashed red',c++}),b.forEach(function(d){var e=document.createElement('span');e.setAttribute('aria-hidden', 'true');e.textContent=' ⌨️',d.style.position='relative',e.style.position='absolute',e.style.right='0',e.style.top='1em',d.appendChild(e),d.style.border='2px dashed red',c++}),c?alert(c+' elements with aria-keyshortcuts or accesskey attributes found.'):alert('No elements with aria-keyshortcuts or accesskey attributes found.')})();
">KeyShortCuts</a></p>
<p>test cases
<h2>HTML: accesskey</h2>
		<a href=# accesskey=l>test1</a>
		<button accesskey=b>test2</button>
		<input accesskey=e aria-label=test3>
		
		<h2>ARIA: aria-keyshortcuts</h2>
		<a href=# aria-keyshortcuts=l>test4</a>
		<button aria-keyshortcuts=b>test5</button>
		<input type="text" aria-keyshortcuts="e" aria-label="test6">

		<span tabindex=0 role=link aria-keyshortcuts=l>test7</span>
		<span tabindex=0 role=button aria-keyshortcuts=b>test8</span>
		<span tabindex="0" role="textbox" aria-keyshortcuts="e" aria-label="test9">test9</span>
              
            
!

CSS

              
                
              
            
!

JS

              
                
              
            
!
999px

Console