What Are HTML5 Games? A Plain-English Guide
Published
If you have played a game in your web browser at any point in the last few years, without installing anything, it was almost certainly an HTML5 game. The term appears all over game sites, usually without explanation. Here is what it means, why it matters, and what it changes for you as a player.
The short answer
HTML5 games are games built with the same technologies that web pages are made of. They run directly inside a browser such as Chrome, Safari, Firefox or Edge. There is no separate program to download and no plug-in to add. If your device can open a website, it can run the game.
What "HTML5" actually refers to
HTML is the language used to describe web pages. HTML5 is the name given to the version that became the standard in the 2010s. It brought features that turned the browser from a document viewer into something closer to a small computer of its own.
For games, three of those features do most of the work.
The first is the canvas. This is a blank rectangle on a page that a program can draw on, many times a second. Every moving thing in a typical browser game, from the snake to the scoreboard, is painted onto a canvas.
The second is JavaScript, the programming language built into every browser. It holds the rules of the game: what happens when you tap, when two things collide, when the timer runs out.
The third is a group of supporting tools for playing sound, saving small amounts of data on your device, going full screen and responding to touch. More demanding games also use a technology called WebGL, which lets the browser use your device's graphics chip for 3D scenes.
So when people say "HTML5 game", they mean a game made from this set of web standards. Not everything involved is strictly part of HTML5, but the name has stuck.
Why they replaced what came before
Until roughly a decade ago, most browser games relied on a plug-in called Flash. It had to be installed separately, it needed frequent security updates, and it never worked on iPhones or iPads. As phones became the main way people went online, that last problem became fatal. Flash was retired at the end of 2020, and browsers removed it.
HTML5 took over because it needs nothing extra. It is part of the browser itself, on every device.
What this means for you
You do not install anything. That saves storage space and time, and it removes a real risk, because you are never asked to run a downloaded file from a site you do not know.
The same game works everywhere. A well-made HTML5 game plays on an Android phone, an iPhone, a tablet, a Windows laptop, a Mac and a Chromebook, from the same link.
Starting is quick. Simple games are often smaller than a single photo, so they load in a second or two even on a weak connection.
They are sandboxed. A game running in a browser tab is kept in its own box. It cannot read your files or interfere with other apps. Closing the tab ends it completely.
You always have the latest version. There are no updates to install. When the developer improves the game, you get the new one the next time you load the page.
Are there any drawbacks?
A few. You generally need to be online to load the game in the first place. Very large and graphically heavy games still run better as installed apps. And because scores are often kept only in your browser, they may vanish if you clear your browsing data or switch to another device.
For quick, casual play, though, none of that matters much.
Do I need to do anything to play them?
No. Keep your browser reasonably up to date, which most devices do automatically, and that is all. If a game does not start, reloading the page fixes it more often than not.
Try a few
The easiest way to understand HTML5 games is to play some. Everything on this site is one, and each takes a few seconds to load. For a start, try a classic like Neon Snake, a thinker like Tile Merge 2048, or something silly like Whack a Mole. The complete list has more.