Teaching the Details Element with ... Details Elements!

This is smart as heck. What better way to teach folks about the <details> element than using the elements themselves to structure the post?

Hopefully, this neat angle will open up a really handy and more importantly, accessible, native HTML element to those (including me) who would previously use JavaScript.

https://codepen.io/jdsteinbach/full/GYmQjo/

Hi 👋
I’m Andy, a freelance web designer

I’m not currently booking new projects, but you can support my work by buying “Every Layout”.

Buy Every Layout