←back to thread

81 points Bogdanas | 1 comments | | HN request time: 0.208s | source
1. JimmyM ◴[] No.9974965[source]
I would say just to be safe, use the <details> and <summary> tags with a polyfill if you need to hide and then reveal text.

It's more meaningful, and it shows that you're not trying to be deceptive. I've not tested it myself, as it is relatively new and I've not had opportunity or time yet.

edit: link to <details> docs https://developer.mozilla.org/en-US/docs/Web/HTML/Element/de...