Pen Settings

HTML

CSS

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

JavaScript

Babel is required to process package imports. If you need a different preprocessor remove all packages first.

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

Behavior

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.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

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.

HTML

            
              <section>	
	<h1>Accessible Multi-select FAQ Accordion</h1>
		<dl class="accordion">	
			<dt>
				<button class="accordion__button" aria-expanded="true" aria-controls="accordion-resources">What resources did you use to build this?</button>
			</dt>
			<dd class="accordion__content" id="accordion-resources" aria-hidden="false">
			<ul>
				<li><a href="https://www.w3.org/TR/wai-aria-practices/#disclosure">Disclosure (FAQ) Design Pattern</a></li>
				<li><a href="https://www.w3.org/TR/wai-aria-practices/examples/disclosure/disclosure-faq.html">Disclosure (FAQ) Example</a></li>
				<li><a href="https://www.w3.org/TR/wai-aria-practices/#accordion">Accordion Design Pattern</a></li>
				<li><a href="https://www.w3.org/TR/wai-aria-practices/examples/accordion/accordion.html">Accordion Example</a></li>
			</ul>
			</dd>








		<dt>
			<button class="accordion__button" aria-expanded="true" aria-controls="accordion-markup">What are the HTML tags and ARIA attributes used?</button>
		</dt>
		<dd class="accordion__content" id="accordion-markup" aria-hidden="false">
			<ul>
				<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/section">section</a></li>
				<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button">button</a></li>
				<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dl">dl</a></li>
				<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dt">dt</a></li>
				<li><a href="https://developer.mozilla.org/en-US/docs/Web/HTML/Element/dd">dd</a></li>
				<li><a href="https://www.w3.org/TR/wai-aria-1.1/#aria-expanded">aria-expanded</a></li>
				<li><a href="https://www.w3.org/TR/wai-aria-1.1/#aria-controls">aria-controls</a></li>
			</ul>
		</dd>

		<dt>
			<button class="accordion__button" aria-expanded="true" aria-controls="accordion-behavior">What is the expected behavior of this component?</button>
		</dt>
		<dd class="accordion__content" id="accordion-behavior" aria-hidden="false">
			<ul>
				<li>Users can tab to an accordion button which will show focus that button</li>
				<li>When using a keyboard and the NVDA screen reader users can hit Enter or Space to toggle the content for the focused accordion button</li>
				<li>When using the VO screen reader users can navigate to the button with Control + Option + Space</li>
				<li>Then when focused on the button, VO users can toggle the content with Control + Option + Space</li>
			</ul>
		</dd>
	</dl>
</section>
            
          
!

CSS

            
              
            
          
!

JS

            
              
            
          
!
999px

Console