Hacker News new | ask | show | jobs
by phil294 1737 days ago
I really prefer using the <details> element for showing/hiding various content. It works amazingly well, and you can also hide the small triangle with some css. Much better than all those checkbox solutions that you see recommended all the time. But for some reason, nobody ever uses it.
1 comments

I think details did in fact replace many of those checkbox hacks, but people also say it’s still the wrong tool for accordions and such, which confuses me.