Small, native web tricks worth remembering

228 points · 54 comments on HN · read original →

Points and comments are a snapshot, not live.

A curated collection of small, native web platform features worth remembering.

HTMLcat is a side project by Marco Mezzavilla that presents a list of 42 post-its covering HTML, CSS, and JavaScript features. Each post-it pairs one useful platform feature with a small code example and a caveat about support. The collection includes items like device type detection in JS, the `inert` attribute, the Popover API, View Transitions API, container queries, and more. The site is meant as an opinionated personal reference, not a replacement for MDN.

What commenters are saying

Commenters are split: some find the collection neat and useful, while others criticize the lack of live demos or visual examples, calling the site mostly code snippets without showing results. Several note that the 'tricks' are just standard features, not hacks. The author engages, acknowledging missing examples and the out-of-scope Bash entry. A recurring point is that the site would benefit from embedded demos or caniuse links. There is also disagreement about hiding scrollbars and the 'device type in JS' snippet's usefulness.