← THE BLUE STICK

Guides / Free and browser gaming

What Is HTML5 Gaming?

PLAY NOWSolo, free, in your browser

An HTML5 game is a game that runs directly in a web browser using only technology built into the browser. No plugin and no installation. If you have played a game on a website in the last several years, it was almost certainly one.

What HTML5 means

HTML is the language web pages are written in. HTML5 is the name of a major revision, finalized as an official standard in 2014 after years of gradual adoption, which added features for rich, interactive content.

In everyday use, "HTML5" is shorthand for a group of web technologies working together.

TechnologyJob in a game
HTMLThe structure of the page
CSSHow menus and interface look
JavaScriptThe logic: the part that makes a game a game
CanvasDrawing 2D graphics
WebGLFast 2D and 3D graphics using the graphics chip
Web AudioSound effects and music
WebSocketsReal-time multiplayer
WebAssemblyRunning code from other languages at high speed
Local storageSaving progress on the device

So an "HTML5 game" is really a game written mostly in JavaScript, or compiled to WebAssembly, that uses these features together.

What it replaced

Before HTML5, browsers could do little alone. Games on the web depended on plugins, extra software installed into the browser.

Plugin eraHTML5 era
Main technologyFlash, also Java applets, Shockwave and Unity Web PlayerBuilt into every browser
InstallationA plugin to install and keep updatedNone
PhonesMostly unsupportedFully supported
SecurityFrequent vulnerabilitiesInside the browser's sandbox
Who controls itOne company per pluginOpen standards agreed by browser makers
UpdatesPlugin and game separatelyThe game updates each time you load it

The turning point was the phone. The iPhone never supported Flash, and as browsing moved to phones, a web that depended on plugins could not keep working. Adobe ended Flash at the close of 2020.

The main milestones:

YearEvent
2004Apple introduces the canvas element in Safari
2010Steve Jobs publishes "Thoughts on Flash", backing HTML5 instead
2011WebGL 1.0 is released. Angry Birds appears as a web game for Chrome
2012Cut the Rope is released as an HTML5 game
2013Cookie Clicker and GeoGuessr launch
20142048 spreads across the web. HTML5 becomes an official standard
2015Agar.io starts the ".io" wave of multiplayer browser games
2017WebAssembly ships in all major browsers
2018Krunker puts a full first-person shooter in a tab
2020Flash is retired
2021Wordle launches
2023WebGPU arrives in Chrome

Why it matters for games

Early HTML5 games were simple and for a while compared poorly with the best Flash games. That has changed. Browsers now run JavaScript very quickly, WebGL gives access to the graphics chip, and WebAssembly lets code from other languages run at close to full speed. Games built with Unity, Godot and other engines can be exported for the web, and as a demonstration, programmers have ported classics such as Doom 3 to run in a tab.

Modern web games can also do things that once needed an app.

CapabilityWhat it enables
Real-time multiplayerArena games and shooters with dozens of players
Controller supportPlay with an Xbox or PlayStation controller
VibrationFeedback on phones
Full screen and pointer lockProper mouse aiming in shooters
Offline supportGames that keep working after the first visit
Home screen installAn icon and full-screen launch, like an app
Touch inputMulti-finger controls on phones and tablets

The limits

LimitDetail
Download sizeEverything loads over the internet, so games are kept compact, typically a few to a few tens of megabytes
PerformanceClose to an installed game for most purposes. Not equal for the most demanding 3D
MemoryBrowsers cap how much a tab can use, lower on phones
Browser differencesDevelopers test on several. Safari on iPhone has its own quirks around sound and full screen
Audio rulesSound cannot start until the player touches the page
StorageSaves live in the browser and can be cleared
Background tabsPaused or slowed to save power

How to tell, and how to get the best from one

Any game that plays in your browser today without asking you to install a plugin is an HTML5 game. There is nothing you need to do to enable it.

  1. Keep your browser updated. Each release makes games faster.
  2. Check that hardware acceleration is on in the browser's settings.
  3. Tap or click the game once to allow sound.
  4. Use full screen.
  5. Close spare tabs on a device with little memory.
  6. Add the game to your home screen on a phone if you play it often.
  7. Use a normal window, not a private one, so progress is kept.

For players the result is simple. A link is all you need, on nearly any device.

PLAY NOWSolo, free, in your browser