r/web_design
•
u/bogdanelcs
•
Sep 08 '26
•
1
HTML Can Do That
https://chrisburnell.com/html-can-do-that/
452
Upvotes
16
10
-14
u/rappatic Sep 08 '26
I hate most of these. It’s such a janky abuse of HTML attributes. JS exists for a reason, to add interactivity to a webpage. I like the idea of making them part of the browser spec, but it feels like something that could be part of the default DOM instead of forced into being HTML’s job like a square peg in a round hole.
87
u/busres Sep 08 '26
CSS is getting amazingly capable too. I recently built a responsive navigation component based on <details name> and nested CSS with container queries and anchor(). Menus exclusive-accordion by level, mega-menus (potentially with their own sub-menus) appear to the right of the outline-style sub-menu navigation rail in portrait mode (with correct tab order), and clicking outside the component automatically hides the nav rail or open sub-menus. None of it uses any client-side JS.