---
source: https://iinventedlight.com/library/notes/html-details.md
title: "HTML details and summary: disclosure widgets without extra script"
license: CC-BY-4.0
license_url: https://creativecommons.org/licenses/by/4.0/
source_license: "CC-BY-4.0 (web.dev); CC-BY-3.0 (web.dev); prose restates cited source lines in own words"
license_family: mixed-green
attribution: "Summary by iinventedlight (AI-assisted). Sources: web.dev, Details and summary; web.dev, Details and summary (source). CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-3.0 (https://raw.githubusercontent.com/GoogleChrome/web.dev/main/LICENSE). Copyright Google LLC. Except as otherwise noted, the content of this site is licensed under the Creative Commons Attribution 3.0 License."
author: "iinventedlight (synthesis of cited sources); text drafted with AI assistance"
date: 2026-11-26
status: published
approved_by: "Cole Withington, 2026-11-27 14:30 PT: \"Yes, publish all of that now\""
checked_on: 2026-11-26
as_of: 2026-11-26
confidence: medium
untested: "Not reproduced (2026-11-26). Official docs and source files were read; no test suite, server, or API call was run for this note."
category: coding-references
topic_area: "code-web: html-details"
tags: [html, details, summary, disclosure, accordion]
client: Librarian
sources:
  - id: S1
    title: "Details and summary"
    publisher: web.dev
    url: https://web.dev/learn/html/details
    accessed: 2026-11-26
    license: "CC-BY-4.0"
  - id: S2
    title: "Details and summary (source)"
    publisher: web.dev
    url: https://raw.githubusercontent.com/GoogleChrome/web.dev/main/src/site/content/en/learn/html/details/index.md
    accessed: 2026-11-26
    license: "CC-BY-3.0"
---
# HTML details and summary: disclosure widgets without extra script
**Answer:** The details and summary elements build a disclosure widget that hides and shows content.

## Disclosure widgets and accordions

An accordion is a series of vertically stacked disclosure widgets.

A disclosure widget is a user interface control that hides and shows content.

An expander arrow is sometimes known by that name.

A common use case is a Frequently Asked Questions page.

## Native elements

The open attribute changes the style of the generated content slightly.

Full support for details and summary in all modern browsers dates only to January 2020.

Functional disclosure widgets can now be created without JavaScript.

## See also

- [html-text-basics](https://iinventedlight.com/library/notes/html-text-basics/)
- [html-semantic-html](https://iinventedlight.com/library/notes/html-semantic-html/)
- [html-attributes](https://iinventedlight.com/library/notes/html-attributes/)

## Claims

- id: C1
  claim: A disclosure widget hides and shows content.
  source: S1
  evidence: "a user interface control that hides and shows content"

- id: C2
  claim: An accordion is a series of vertically stacked disclosure widgets.
  source: S1
  evidence: "a series of vertically stacked disclosure widgets"

- id: C3
  claim: The details and summary elements have been fully supported since January 2020.
  source: S2
  evidence: "fully supported in all modern browsers since January 2020"

- id: C4
  claim: The open attribute affects the style of the generated content.
  source: S2
  evidence: "presence (or absence) of the open attribute"

## Sources

- [S1] Details and summary. web.dev. https://web.dev/learn/html/details . License: CC-BY-4.0. Accessed 2026-11-26.

- [S2] Details and summary (source). web.dev. https://raw.githubusercontent.com/GoogleChrome/web.dev/main/src/site/content/en/learn/html/details/index.md . License: CC-BY-3.0. Accessed 2026-11-26.

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: web.dev, Details and summary; web.dev, Details and summary (source). CC-BY-4.0 (https://web.dev/learn/css/flexbox). Copyright Google LLC. web.dev text is CC BY 4.0. CC-BY-3.0 (https://raw.githubusercontent.com/GoogleChrome/web.dev/main/LICENSE). Copyright Google LLC. Except as otherwise noted, the content of this site is licensed under the Creative Commons Attribution 3.0 License. Text was condensed and changed from the originals.

---

Agents: [/agents.md](/agents.md) | [/.well-known/agent-library.json](/.well-known/agent-library.json).
