New

The latest blog posts to take off on Hacker News. 499 posts.

Web & Frontend
2025
4

You can make up HTML tags

Browsers handle unrecognized tags as a custom element, with no effect beyond what's specified in the CSS. This isn't just a weird quirk, it is standardized behavior If you include hyphens in the name, you can guarantee your tag won't appear in any future versions of HTML.

19

Let's write a toy UI library

We begin by writing a few helper functions that will invariably prove useful to us later. We will be dealing with a lot of rectangular regions on the screen, so it makes sense to start by defining a rectangle structure and write some code to manipulate it.

23

Stop crawling my HTML – use the API

One of the (many) depressing things about the "AI" future in which we're living, is that it exposes just how many people are willing to outsource their critical thinking. Brute force is preferred to thinking about how to efficiently tackle a problem. For some reason, my websites are regularly targetted by "scrapers"…

29

An SVG is all you need

SVGs are pretty cool - vector graphics in a simple XML format. They are supported on just about every device and platform, are crisp on every display, and can have embedded scripts in to make them interactive. They're way more capable than many people realise, and I think we can capitalise on some of that unrealised…