DEV Community


Discussion on: 9 Extremely Useful HTML Tricks

razgandeanu profile image
Klaus Author

That's amazing.
Thank you for sharing this with us.

samuraiseoul profile image
Scott Lavigne

No problem! I'm a real big fan of not using JS or adding custom logic where you can get away with it. As a result I'm a HUGE fan of the datalist tag for autocomplete and also the details tag for most accordions. Especially on smaller sites.

Glad I that you and others find this useful. :) actually uses the details tag for its accordion to close comment threads! The little arrow on the left of comments is via the details tag. You can see it via inspect element! :D