Hacker News new | past | comments | ask | show | jobs | submit login

Using HTML5 tags such as <details>, you don't need CSS or JS!

Try this in Chrome: https://jsfiddle.net/timdavila/f5rcarmn/




Unfortunately this is not yet supported in any version of IE, including Edge.


So I didn't try it in Chrome, and it doesn't work in Firefox, yet. But I can see where this is going and it would be awesome if it actually worked.


On an encouraging note, it does work in Firefox Nightly (50.0a1).


Whoa. I learn something new everyday...


It's defined in HTML 5.1, which is still Candidate Recommendation.




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: