Skip to main content
Eckford on the side
The snippets herein are from far and wide. It makes no sense without context
  • Login
  • Home
  • Bridges
  • Flask
  • Get Smart
  • GitOps
  • Patterns for safely evolving systems without breaking operations
  • O365
  • Semantic Search Structure Demo
  • Term Store Contributor can't add Term
Menu
  1. Home

native HTML accordion

Sat, 07/18/2026 - 8:13pm by admin

I never new that this is all the HTML that one needs to style like accordian in HTML. 

One section:

<details>
    <summary>Open the album</summary>
    Album interior
</details>

Several independent sections:

<details>
    <summary>Cover</summary>
    Front and back
</details>

<details>
    <summary>Insert</summary>
    Lyrics and credits
</details>

<details>
    <summary>Special cases</summary>
    Gatefold spread
</details>

Each opens independently. Newer HTML can also make them behave as a mutually exclusive accordion by sharing a name:

<details name="album-parts">
    <summary>Cover</summary>
    Front and back
</details>

<details name="album-parts">
    <summary>Insert</summary>
    Front and back
</details>

Opening one closes the other—still no JavaScript. For Music Trove, however, the single outer <details> currently feels right: open the album, then see everything inside.

  • Log in to post comments

Hmmmm

  • Oracle Forms vs Power Apps
  • native HTML accordion
  • cut the cord → go async
  • CSV to JSONL
  • GNOME’s screenshot accelerator
  • 🧰 1. Modern Tools to Know
  • Frodo's USB NIC
  • podman make files
  • Linux 101
  • Access Points on same network
Powered by Backdrop CMS