--- url: "https://webaim.org/techniques/disclosures/" titulek: "WebAIM: Disclosures and Accordions" h1: "Disclosures and Accordions" popis: "" jazyk: "en" kanonicka: "" drobecky: ["You are here:", "Home", "Articles"] zdroj: "live" wayback_snapshot: "" stazeno: "2026-09-14 05:17:34" znaku: 6376 slov: 941 kodovani: "utf-8" sha256: "e9d9bb50378207e575d24674c6162e9588006466dab5af53a7850b1ad1393ea1" --- # Disclosures and Accordions You are here: [Home](/) > [Articles](/articles/) > Disclosures and Accordions ## Introduction Expanding and collapsing widgets are often used to reduce the amount of scrolling required by allowing a user to bypass or collapse content. There are two types of these content area widgets: disclosures and accordions. A **disclosure**, also known as a "Show/Hide" widget or "twisty", is the basic content area. It consists of a trigger button that toggles the visibility of the content, and the content area itself. A disclosure widget can be made using buttons, JavaScript, and ARIA, or simply by using HTML `
` and `` elements. This is the summary of the disclosure And here are the details of the disclosure!
This is the summary of the disclosure

And here are the details of the disclosure!

The `
` element can be given an `open` attribute to cause the summary to be visible by default. **Accordions** are multiple sections of content areas that are visually "stacked" together. Each section has a trigger button that expands and collapses the section's content area with only one of the sections visible at a time. A basic accordion can be created with multiple `
` elements each with the same `name` attribute value. Legislative Branch Makes the laws and is composed of Congress, which includes the Senate and the House of Representatives. Executive Branch Enforces the laws and is led by the President, along with federal agencies and the Cabinet. Judicial Branch Interprets the laws and is headed by the Supreme Court and other federal courts.
Legislative Branch

Makes the laws and is composed of Congress, which includes the Senate and the House of Representatives.

Executive Branch

Enforces the laws and is led by the President, along with federal agencies and the Cabinet.

Judicial Branch

Interprets the laws and is headed by the Supreme Court and other federal courts.

Accordions can also be created using JavaScript and ARIA as shown in the [WAI‑ARIA Accordion Example](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/examples/accordion/). ## Potential Problems Note Disclosures and accordions created using `
` and `` have built-in accessibility. The `` element properly functions like a button, and the expanded state (open or closed) is presented to assistive technologies. The problems below only occur when other elements or scripting are used. Disclosures and accordions created using buttons, JavaScript, and ARIA can be implemented incorrectly and create accessibility issues. Below are some common issues and how to address them. ### Triggers cannot receive keyboard focus Sometimes, elements that are not meant to be interactive (e.g., `
`, `

`, or `` without the `href` attribute) are made interactive through [JavaScript event handlers](/techniques/javascript/eventhandlers) like `onclick`. If one of these is made into the trigger element for a content area, keyboard and screen reader users are unable to directly navigate to it. The best way to solve this problem is to use a standard `