Email or username:

Password:

Forgot your password?
MDN Web Docs

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

1 comment
Анатолий Богомолов

@MDN ✨ You can't add a closing animation using css, so you'll have to write an ugly crutch in js

Go Up