How to automatically close all details tags after opening a specific one
- Accordions
- Details
- HTML details
I've been making use of the details element for a little while now. It is quite simply the quickest, simplest solution for adding an accordion to a website. But, unlike using a framework to add accordions, they don't come with some of the perhaps expected behaviour for opening/closing.
Read article