Building a Bootstrap Accordion with the details/summary HTML tags in 2025

A few years ago I wrote a short post about building a Bootstrap accordion using the <details> and <summary> HTML tags. The idea was to create a collapsible accordion without needing any JavaScript, relying solely on CSS for styling and the native functionality of the <details> element. At the time it wasn&rsquo;t possible to animate the opening and closing of the accordion (with CSS), but thanks…