Replacing JS with just HTML - HTMHell

A friend just posted this link on Mastodon. It teaches some tricks I didn’t know involving the details element, popovers and other things. Hope this helps!

3 Likes

it’s pretty insane what you can do with css nowadays alone. even i do a lot of complex stuff with html and css alone. while being in the progress it’s often hard to appreciate the power of css as i sadly have to get things done. but at the end when i can fully commit myself to the styling the results are really beautiful

1 Like

One thing to bear in mind is the accessibility of these new elements. Some of them are inaccessible (which I think the author does mention to be honest).

As long as you’re not linking <input> to a <datalist> via attribute, you’ll be fine. <details> has been around for a while and is standardized. Likewise the new popover functionality and <dialog>.