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>aria-details demo</h1>
<p>The button <button aria-details="info" popovertarget="info">Oppenheimer's Oscars</button>
 is associated with some “details” that can be far away from it, in this case at the end of this document..</p>
<p>With JAWS and NVDA, you should be able to jump to those details.</p>
<hr>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam bibendum velit a posuere mattis. Mauris non quam vel ligula consequat convallis eget tincidunt arcu. Suspendisse potenti. Curabitur laoreet tortor vehicula risus commodo ornare eu vel mauris. Integer malesuada mi eget nulla ornare finibus. Duis vulputate dui in turpis pharetra, ut mattis ligula pretium. Curabitur facilisis nec elit nec ultrices. Phasellus blandit pretium nunc, egestas faucibus nibh congue ac. Donec vestibulum, velit eget tempor ornare, mauris nulla fringilla risus, sed commodo eros purus eu ex. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla aliquam gravida egestas. Suspendisse iaculis fermentum nibh, in commodo lorem. Aliquam consequat neque nec mauris tincidunt convallis. Maecenas est urna, eleifend sit amet mollis ac, imperdiet ut quam. Donec vel turpis nec quam egestas commodo eget sit amet magna. Mauris consequat rutrum massa, ac semper leo lobortis id. </p>
<p> Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam bibendum velit a posuere mattis. Mauris non quam vel ligula consequat convallis eget tincidunt arcu. Suspendisse potenti. Curabitur laoreet tortor vehicula risus commodo ornare eu vel mauris. Integer malesuada mi eget nulla ornare finibus. Duis vulputate dui in turpis pharetra, ut mattis ligula pretium. Curabitur facilisis nec elit nec ultrices. Phasellus blandit pretium nunc, egestas faucibus nibh congue ac. Donec vestibulum, velit eget tempor ornare, mauris nulla fringilla risus, sed commodo eros purus eu ex. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Nulla aliquam gravida egestas. Suspendisse iaculis fermentum nibh, in commodo lorem. Aliquam consequat neque nec mauris tincidunt convallis. Maecenas est urna, eleifend sit amet mollis ac, imperdiet ut quam. Donec vel turpis nec quam egestas commodo eget sit amet magna. Mauris consequat rutrum massa, ac semper leo lobortis id.</p>
<div id="info">
  <p>At the 2024 Oscar's, the film Oppenheimer won several prizes, including:</p>
  <ul>
    <li>Best Picture</li>
    <li>Best Director</li>
    <li>Best Cinematography</li>
  </ul>
  <p>See the <a href="https://en.wikipedia.org/wiki/96th_Academy_Awards">96th Academy Awards Wikipedia page</a> for the full list of nominees and winners this year. I only added this to have a list and a link, to show this structure won't be concatenated into a string when referenced via <code>aria-details</code>.</p>
</div>
              
            
!

CSS

              
                #info { padding: 1em; border: 1px solid #555; }
              
            
!

JS

              
                
              
            
!
999px

Console