HTML5: the end of the workarounds

Around 2010 every meeting I sat in had HTML5 on the agenda. It meant unlearning a decade of workarounds, and it was the best news the web had had in years.

October 2026

It is hard now to remember how loud it was. Clients asked for it, project managers put it in proposals, developers argued about it. Half of what people called HTML5 was really CSS3 or JavaScript, and nobody minded: the word stood for a feeling that the web was moving again.

For those of us who built things, the feeling was more specific. A whole collection of habits, some of them ten years old, could go. Not because a new fashion had arrived, but because the browser could finally do the thing itself.

How it nearly did not happen

At the start of the 2000s the official future of the web was XHTML 2, a clean, strict language from the W3C that was not compatible with the pages that already existed. In June 2004, at a W3C workshop, Mozilla and Opera proposed to keep developing HTML instead, in small steps that would not break anything. The workshop voted against them, eight to fourteen. They started their own group the same month, the WHATWG, together with Apple, with Ian Hickson as editor.

The browser makers won by shipping. In 2007 the W3C took the WHATWG’s draft as the starting point for its own HTML working group, in January 2008 it published the first public draft of HTML5, and in 2009 it let the XHTML 2 working group expire. It is the same story I told about DITA and about the Semantic Web: the elegant standard written ahead of practice lost to the one that started from what people were already doing.

The habits we could drop

The first thing to go was the doctype. For years every page opened with a line nobody could type from memory, copied from the previous project and pointing at a document type definition on the W3C’s server. HTML5 replaced it with <!DOCTYPE html>. Fifteen characters, and the browser renders in standards mode. It was a small thing, and it set the tone: the new HTML would describe what browsers actually did, not what a committee wished they did.

Then the structure. Every site had a div with the id “header”, one called “nav”, one called “footer”, each named slightly differently by each developer. HTML5 gave them real names: header, nav, main, article, section, aside, footer. A screen reader could now jump to the navigation, and a search engine could tell the article from the furniture around it, because the markup said so instead of a guess at a class name.

Then the forms. A field for an email address, a date, a number, a phone number, each with its own input type, and an attribute that made a field required. Every project used to carry its own JavaScript to check that a form was filled in and to draw a calendar for picking a date. Much of it could be thrown away, and on a phone the right keyboard appeared by itself.

And then, above all, video. Until then a video on a web page meant a plug-in, almost always Flash: a closed program inside the page that the browser could not see into, and one that never ran on the iPhone. With the video and audio elements, and canvas for drawing, the browser did it natively. In April 2010 Steve Jobs published his letter Thoughts on Flash, explaining why: security, battery life, no support for touch, and a closed system. In July 2017 Adobe announced the end of Flash Player, and on 31 December 2020 it stopped supporting it. The plug-in era ended where it had started: with the browser.

Using it before it was finished

Nobody waited for the standard to be done. Internet Explorer 6, 7 and 8 did not know the new elements and refused to style them, so a few lines of JavaScript taught them: the HTML5 shiv, published by Remy Sharp in January 2009, based on a trick found years earlier and named by John Resig. For years it sat in the head of almost every new site, a small apology to the past.

We learned it from short books and long blog posts. In May 2010 Jeremy Keith’s HTML5 for Web Designers came out, a thin book you could read on a train, and for many designers it was the first time a specification had been explained by someone who built websites. In January 2011 the W3C even gave HTML5 a logo, an orange shield, which tells you how much of it was about the mood as much as the markup.

The official end came late. HTML5 became a W3C Recommendation on 28 October 2014, years after most of us were using it. By then the WHATWG had already dropped the number and called its version the HTML Living Standard, updated continuously. In May 2019 the W3C agreed: there is now one HTML, maintained by the browser makers, and it has no version number at all.

Why it mattered

HTML5 settled who the web belongs to. Not to a company with a plug-in, and not to a committee writing ahead of practice, but to open markup that every browser reads the same way. Video, forms, structure and drawing moved out of closed programs and into the page, where anyone can see the source, a screen reader can follow it and a search engine can index it.

That is also why a site like this one needs so little. No plug-ins, as Every plugin is code you did not write argues, and no page builder, as The page only one program can read explains. Plain HTML does what used to need extra software, and it will still open in twenty years. The excitement in those meetings was justified. It just took the rest of the decade to arrive.

Most of what HTML5 offered is still not used as well as it could be. These are the parts I would check on any site.

What HTML5 still asks of you

  • Name the regions. One header, one nav for the main menu, one main, one footer, so a screen reader can jump straight to them.
  • Use the right input type. email, tel, date and number bring the right keyboard and basic checks for free.
  • Label every field. A label tied to its input, never a placeholder standing in for one.
  • Use a button for an action. A button works with the keyboard by itself; a clickable div has to be taught everything.
  • Give video captions. The track element is there for it, and a video without words shuts some people out.
  • Prefer the element to the script. Before adding JavaScript for a disclosure or a dialog, check whether details or dialog already does it.

Read the originals