DEV Community

loading...

Discussion on: 9 Extremely Useful HTML Tricks

Collapse
razgandeanu profile image
Klaus Author

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

Collapse
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. :)

dev.to 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