00:00:24
icon

Using custom accordions? There's an easier way! 🪗

The <details> element now has a name attribute with support across all major browsers.
✨ No more custom handling for UI accordions
✨ Less code to maintain
✨ Native browser support

Try now 👇
developer.mozilla.org/en-US/bl

Web site image
Exclusive accordions using the HTML details element | MDN Blog