Is HTML a programming language?

It's one of the internet's longest-running arguments. Rather than pick a side, this site sets out what programming means, tests HTML and CSS against it, and lets the demos speak for themselves.

Introduction

The great HTML debate

Ask whether HTML is a programming language and you'll rarely get a calm answer. Designers, developers and engineers have argued over it for years, mostly on social media, and mostly without agreeing what the question means.

Some of it is trolling, and some of it is gatekeeping: a way of deciding who counts as a programmer. Underneath, though, is a good question. Where does describing something end, and programming it begin?

HTML is only half of the story. CSS has quietly learnt to choose, count and calculate, and the two together can do things that neither can do alone. So this site looks at each in turn, then at what happens when they meet.

You won't find a simple yes or no at the end. You will find the tests people use, the evidence for each, and enough working demos to make up your own mind.

The rules

Zero JavaScript

Everything on this site, from the menu to the demos, is built from HTML and CSS. Your browser is told to refuse scripts outright, and the site won't even build if one slips in. The site itself is part of the evidence.

  • The menu

    On a phone, the menu opens and closes with HTML's popover attribute. No script toggles it.

  • Light and dark

    The colours follow your device's setting through a CSS media query, so there's no switch to remember.

  • The demos

    When a demo has something to remember, it's in a checkbox or a radio button, and CSS decides what happens next.