HTML5 is a
markup language
Markup language refers to a text-encoding system consisting of a set of symbols inserted in a text document to control its structure, formatting, or the relationship between its parts. Markup is often used to control the display of the document ...
used for structuring and presenting content on the
World Wide Web. It is the fifth and final
major
HTML version that is a
World Wide Web Consortium (W3C) recommendation. The current specification is known as the
HTML Living Standard. It is maintained by the
Web Hypertext Application Technology Working Group (WHATWG), a consortium of the major browser vendors (
Apple,
Google,
Mozilla, and
Microsoft).
HTML5 was first released in a public-facing form on 22 January 2008,
with a major update and "W3C Recommendation" status in October 2014.
Its goals were to improve the language with support for the latest
multimedia and other new features; to keep the language both easily readable by humans and consistently understood by computers and devices such as
web browsers,
parsers
Parsing, syntax analysis, or syntactic analysis is the process of analyzing a string of symbols, either in natural language, computer languages or data structures, conforming to the rules of a formal grammar. The term ''parsing'' comes from Lat ...
, etc., without
XHTML's rigidity; and to remain
backward-compatible with older software. HTML5 is intended to subsume not only
HTML 4 but also XHTML 1 and
DOM Level 2 HTML.
HTML5 includes detailed processing models to encourage more interoperable implementations; it extends, improves, and rationalizes the markup available for documents and introduces markup and
application programming interface
An application programming interface (API) is a way for two or more computer programs to communicate with each other. It is a type of software interface, offering a service to other pieces of software. A document or standard that describes how t ...
s (APIs) for complex
web applications.
For the same reasons, HTML5 is also a candidate for cross-platform mobile applications because it includes features designed with low-powered devices in mind.
Many new
syntactic
In linguistics, syntax () is the study of how words and morphemes combine to form larger units such as phrases and sentences. Central concerns of syntax include word order, grammatical relations, hierarchical sentence structure (constituency), ...
features are included. To natively include and handle multimedia and
graphical content, the new
,
and
elements
Element or elements may refer to:
Science
* Chemical element, a pure substance of one type of atom
* Heating element, a device that generates heat by electrical resistance
* Orbital elements, parameters required to identify a specific orbit of ...
were added, expandable sections are natively implemented through and rather than depending on CSS or JavaScript, and support for
scalable vector graphics (SVG) content and
MathML for mathematical formulas was also added. To enrich the
semantic
Semantics (from grc, σημαντικός ''sēmantikós'', "significant") is the study of reference, meaning, or truth. The term can be used to refer to subfields of several distinct disciplines, including philosophy, linguistics and comput ...
content of documents, new page structure elements such as , ,
, , , , , and are added. New
attributes were introduced, some elements and attributes were removed, and others such as , , and were changed, redefined, or standardized. The APIs and
Document Object Model (DOM) are now fundamental parts of the HTML5 specification,
and HTML5 also better defines the processing for any invalid documents.
History
The
Web Hypertext Application Technology Working Group (WHATWG) began work on the new standard in 2004. At that time, HTML 4.01 had not been updated since 2000, and the
World Wide Web Consortium (W3C) was focusing future developments on
XHTML 2.0. In 2009, the
W3C allowed the
XHTML 2.0 Working Group's charter to expire and decided not to renew it.
The
Mozilla Foundation and
Opera Software presented a position paper at a World Wide Web Consortium (W3C) workshop in June 2004, focusing on developing technologies that are backward-compatible with existing browsers, including an initial draft specification of Web Forms 2.0. The workshop concluded with a vote—8 for, 14 against—for continuing work on HTML. Immediately after the workshop, WHATWG was formed to start work based upon that position paper, and a second draft, Web Applications 1.0, was also announced. The two specifications were later merged to form HTML5. The HTML5 specification was adopted as the starting point of the work of the new HTML working group of the W3C in 2007.
WHATWG's
Ian Hickson
Ian "Hixie" Hickson is the author and maintainer of the Acid2 and Acid3 tests, the WHATWG HTML 5 specification, (
Google) and
David Hyatt
David (; , "beloved one") (traditional spelling), , ''Dāwūd''; grc-koi, Δαυΐδ, Dauíd; la, Davidus, David; gez , ዳዊት, ''Dawit''; xcl, Դաւիթ, ''Dawitʿ''; cu, Давíдъ, ''Davidŭ''; possibly meaning "beloved one". w ...
(
Apple) produced W3C's first public working draft of the specification on 22 January 2008.
"Thoughts on Flash"
While some features of HTML5 are often compared to
Adobe Flash, the two technologies are very different. Both include features for playing audio and video within web pages, and for using
Scalable Vector Graphics. However, HTML5 on its own cannot be used for animation or interactivity – it must be supplemented with
CSS3 or
JavaScript. There are many Flash capabilities that have no direct counterpart in HTML5 (see
Comparison of HTML5 and Flash
Modern HTML5 has feature-parity with the now-obsolete Adobe Flash. Both include features for playing audio and video within web pages. Flash was specifically built to integrate vector graphics and light games in a web page, features that HTML5 ...
). HTML5's interactive capabilities became a topic of mainstream media attention around April 2010 after
Apple Inc.'s then-CEO
Steve Jobs
Steven Paul Jobs (February 24, 1955 – October 5, 2011) was an American entrepreneur, industrial designer, media proprietor, and investor. He was the co-founder, chairman, and CEO of Apple; the chairman and majority shareholder of Pixar; a ...
issued a public letter titled "Thoughts on Flash" in which he concluded that "Flash is no longer necessary to watch video or consume any kind of web content" and that "new open standards created in the mobile era, such as HTML5, will win". This sparked a debate in web development circles suggesting that, while HTML5 provides enhanced functionality, developers must consider the varying browser support of the different parts of the standard as well as other functionality differences between HTML5 and Flash. In early November 2011,
Adobe
Adobe ( ; ) is a building material made from earth and organic materials. is Spanish for ''mudbrick''. In some English-speaking regions of Spanish heritage, such as the Southwestern United States, the term is used to refer to any kind of e ...
announced that it would discontinue the development of Flash for mobile devices and reorient its efforts in developing tools using HTML5. On 25 July 2017, Adobe announced that both the distribution and support of Flash would cease by the end of 2020. Adobe itself officially discontinued Flash on 31 December 2020 and all Flash content was blocked from running in Flash Player as of 12 January 2021.
Last call, candidacy, and recommendation stages
On 14 February 2011, the W3C extended the charter of its HTML Working Group with clear milestones for HTML5. In May 2011, the working group advanced HTML5 to "Last Call", an invitation to communities inside and outside W3C to confirm the technical soundness of the specification. The W3C developed a comprehensive test suite to achieve broad interoperability for the full specification by 2014, which was the target date for recommendation.
In January 2011, the WHATWG renamed its "HTML5" specification ''HTML Living Standard''. The W3C nevertheless continued its project to release HTML5.
In July 2012, WHATWG and W3C decided on a degree of separation. W3C will continue the HTML5 specification work, focusing on a single definitive standard, which is considered a "snapshot" by WHATWG. The WHATWG organization continues its work with HTML5 as a "living standard". The concept of a living standard is that it is never complete and is always being updated and improved. New features can be added but functionality will not be removed.
In December 2012, W3C designated HTML5 as a Candidate Recommendation. The criterion for advancement to
W3C Recommendation is "two 100% complete and fully interoperable implementations".
On 16 September 2014, W3C moved HTML5 to Proposed Recommendation. On 28 October 2014, HTML5 was released as a W3C Recommendation, bringing the specification process to completion.
On 1 November 2016, HTML5.1 was released as a W3C Recommendation. On 14 December 2017, HTML5.2 was released as a W3C Recommendation.
Retirement
HTML5.0 was retired on 2018-03-27, along with HTML 3.2, HTML 4.0, HTML 4.01, XHTML™ 1.0, and XHTML™ 1.1. HTML5.2 and HTML5.3 were retired on 2021-01-28.
Timeline
The combined timelines for HTML5.0, HTML5.1, HTML5.2 and HTML6:
HTML5.3 is not the latest version of HTML. As of December 2022, the latest version of HTML is HTML5.2, which was published as a Recommendation by the World Wide Web Consortium (W3C) on December 20, 2017.
There is currently no official HTML5.3 version. The W3C is working on the next version of HTML, which is expected to be HTML6, but it has not yet been released.
It's worth noting that HTML is an evolving standard, and new versions of HTML are released periodically to add new features and improve upon existing ones. You can find more information about the current version of HTML and future developments in the official W3C documentation.
W3C and WHATWG conflict
The W3C ceded authority over the HTML and DOM standards to WHATWG on 28 May 2019, as it considered that having two standards is harmful.
The HTML Living Standard is now authoritative. However, W3C will still participate in the development process of HTML.
Before the ceding of authority, W3C and WHATWG had been characterized as both working together on the development of HTML5,
and yet also at cross purposes
ever since the July 2012 split. The W3C "HTML5" standard was snapshot-based (HTML5, HTML5.1, etc.) and static, while the WHATWG "HTML living standard" is continually updated. The relationship had been described as "fragile", even a "rift",
[ (Original title: "When Standards Divide".)] and characterized by "squabbling".
In at least one case, namely the permissible content of the element, the two specifications directly contradicted each other ( with the W3C definition allowing a broader range of uses than the WHATWG definition.
The "Introduction" section in the WHATWG spec (edited by
Ian "Hixie" Hickson) is critical of W3C, e.g. " Although we have asked them to stop doing so, the W3C also republishes some parts of this specification as separate documents." In its "History" subsection it portrays W3C as resistant to Hickson's and WHATWG's original HTML5 plans, then jumping on the bandwagon belatedly (though Hickson was in control of the W3C HTML5 spec, too). Regardless, it indicates a major philosophical divide between the organizations:
The two entities signed an agreement to work together on a single version of HTML on 28 May 2019.
Differences between the two standards
In addition to the contradiction in the element mentioned above, other differences between the two standards include at least the following, as of September 2018:
The following table provides data from the Mozilla Development Network on compatibility with major browsers, as of September 2018, of HTML elements unique to one of the standards:
Features and APIs
The W3C proposed a greater reliance on modularity as a key part of the plan to make faster progress, meaning identifying specific features, either proposed or already existing in the spec, and advancing them as separate specifications. Some technologies that were originally defined in HTML5 itself are now defined in separate specifications:
* HTML Working Group – HTML Canvas 2D Context;
* Web Apps Working Group –
Web Messaging,
Web workers,
Web storage,
WebSocket,
Server-sent events,
Web Components
Web Components are a set of features that provide a standard component model for the Web allowing for encapsulation and interoperability of individual HTML elements.
Primary technologies used to create them include:
* Custom Elements: APIs to ...
(this was not part of HTML5, though); the Web Applications Working Group was closed in October 2015 and its deliverables transferred to the Web Platform Working Group (WPWG).
* IETF HyBi Working Group – WebSocket Protocol;
* WebRTC Working Group –
WebRTC;
* Web Media Text Tracks Community Group –
WebVTT.
Some features that were removed from the original HTML5 specification have been standardized separately as modules, such as
Microdata and
Canvas
Canvas is an extremely durable plain-woven fabric used for making sails, tents, marquees, backpacks, shelters, as a support for oil painting and for other items for which sturdiness is required, as well as in such fashion objects as handbags ...
. Technical specifications introduced as HTML5 extensions such as
Polyglot markup have also been standardized as modules. Some W3C specifications that were originally separate specifications have been adapted as HTML5 extensions or features, such as
SVG. Some features that might have slowed down the standardization of HTML5 were or will be standardized as upcoming specifications, instead.
Features
Markup
HTML5 introduces
elements
Element or elements may refer to:
Science
* Chemical element, a pure substance of one type of atom
* Heating element, a device that generates heat by electrical resistance
* Orbital elements, parameters required to identify a specific orbit of ...
and attributes that reflect typical usage on modern websites. Some of them are semantic replacements for common uses of generic block () and inline () elements, for example (website navigation block), (usually referring to bottom of web page or to last lines of HTML code), or and instead of .
Some deprecated elements from
HTML 4.01 have been dropped, including purely presentational elements such as and , whose effects have long been superseded by the more capable
Cascading Style Sheets
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone techno ...
. There is also a renewed emphasis on the importance of client-side
JavaScript used to create
dynamic web pages.
The HTML5 syntax is no longer based on
SGML
The Standard Generalized Markup Language (SGML; ISO 8879:1986) is a standard for defining generalized markup languages for documents. ISO 8879 Annex A.1 states that generalized markup is "based on two postulates":
* Declarative: Markup should des ...
despite the similarity of its markup. It has, however, been designed to be backward-compatible with common parsing of older versions of HTML. It comes with a new introductory line that looks like an SGML
document type declaration,
<!DOCTYPE html>
, which triggers the standards-compliant
rendering mode.
Since 5 January 2009, HTML5 also includes ''Web Forms 2.0'', a previously separate
WHATWG specification.
New APIs

In addition to specifying markup, HTML5 specifies scripting
application programming interfaces (APIs) that can be used with
JavaScript.
Existing
Document Object Model (DOM) interfaces are extended and ''de facto'' features documented. There are also new APIs, such as:
*
Canvas
Canvas is an extremely durable plain-woven fabric used for making sails, tents, marquees, backpacks, shelters, as a support for oil painting and for other items for which sturdiness is required, as well as in such fashion objects as handbags ...
;
* Timed Media Playback;
* Offline;
* Editable content;
*
Drag and drop;
* History;
*
MIME type
A media type (also known as a MIME type) is a two-part identifier for file formats and format contents transmitted on the Internet. The Internet Assigned Numbers Authority, Internet Assigned Numbers Authority (IANA) is the official authority for t ...
and protocol handler registration;
*
Microdata;
*
Web Messaging;
*
Web Storage – a key-value pair storage framework that provides behavior similar to
cookies but with larger storage capacity and improved API.
Not all of the above technologies are included in the W3C HTML5 specification, though they are in the WHATWG HTML specification. Some related technologies, which are not part of either the W3C HTML5 or the WHATWG HTML specification, are as follows. The W3C publishes specifications for these separately:
*
Geolocation;
*
IndexedDB
The Indexed Database API (commonly referred to as IndexedDB) is a JavaScript application programming interface (API) provided by web browsers for managing a NoSQL database of JSON objects. It is a standard maintained by the World Wide Web Consort ...
– an indexed hierarchical key-value store (formerly WebSimpleDB);
*
File – an API intended to handle file uploads and file manipulation;
* Directories and System – an API intended to satisfy client-side-storage use cases not well served by databases;
* File Writer – an API for writing to files from web applications;
*
Web Audio
HTML5 Audio is a subject of the HTML5 specification, incorporating audio input, playback, and synthesis, as well as speech to text, in the browser.
<audio> element
The element represents a sound, or an audio stream. It is commonly use ...
– a high-level JavaScript API for processing and synthesizing audio in web applications;
* ClassList.
*
Web cryptography API
*
WebRTC
*
Web SQL Database
Web SQL Database is a deprecated web browser API specification for storing data in databases that can be queried using SQL variant.
The API is supported by Google Chrome, Opera, Microsoft Edge, and the Android Browser, albeit support is slowly be ...
– a local
SQL Database (no longer maintained);
HTML5 cannot provide animation within web pages. Additional JavaScript or
CSS3 is necessary for animating HTML elements. Animation is also possible using JavaScript and HTML 4, and within SVG elements through
SMIL, although browser support of the latter remains uneven as of 2011.
XHTML5 (XML-serialized HTML5)
XML documents must be served with an XML
Internet media type
A media type (also known as a MIME type) is a two-part identifier for file formats and format contents transmitted on the Internet. The Internet Assigned Numbers Authority (IANA) is the official authority for the standardization and publication o ...
(often called "
MIME type") such as
application/xhtml+xml
or
application/xml
,
and must conform to strict, well-formed syntax of XML. XHTML5 is simply XML-serialized HTML5 data (that is, HTML5 constrained to XHTML's strict requirements, e.g., not having any unclosed tags), sent with one of XML media types. HTML that has been written to conform to both the HTML and XHTML specifications and therefore produces the same DOM tree whether parsed as HTML or XML is known as
polyglot markup.
There is no DTD for XHTML5.
Error handling
HTML5 is designed so that old browsers
can safely ignore new HTML5 constructs.
In contrast to HTML 4.01, the HTML5 specification gives detailed rules for
lexing and
parsing, with the intent that compliant browsers will produce the same results when parsing incorrect syntax.
Although HTML5 now defines a consistent behavior for "
tag soup" documents, those documents do not conform to the HTML5 standard.
Popularity
According to a report released on 30 September 2011, 34 of the world's top 100 Web sites were using HTML5the adoption led by
search engine
A search engine is a software system designed to carry out web searches. They search the World Wide Web in a systematic way for particular information specified in a textual web search query. The search results are generally presented in a ...
s and
social networks. Another report released in August 2013 has shown that 153 of the ''
Fortune 500
The ''Fortune'' 500 is an annual list compiled and published by ''Fortune'' magazine that ranks 500 of the largest United States corporations by total revenue for their respective fiscal years. The list includes publicly held companies, along ...
'' U.S. companies implemented HTML5 on their corporate websites.
Since 2014, HTML5 is at least
partially supported by most popular layout engines.
Differences from HTML 4.01 and XHTML 1.x
The following is a cursory list of differences and some specific examples.
* New parsing rules: oriented towards flexible parsing and compatibility; not based on SGML
* Ability to use inline SVG and MathML in
text/html
* New
elements
Element or elements may refer to:
Science
* Chemical element, a pure substance of one type of atom
* Heating element, a device that generates heat by electrical resistance
* Orbital elements, parameters required to identify a specific orbit of ...
:
article
,
aside
,
audio
,
bdi
,
canvas
,
command
,
data
,
datalist
,
details
,
embed
,
figcaption
,
figure
,
footer
,
header
,
keygen
,
mark
,
meter
,
nav
,
output
,
progress
,
rp
,
rt
,
ruby
,
section
,
source
,
summary
,
time
,
track
,
video
,
wbr
* New types of form controls:
dates and times
,
email
,
url
,
search
,
number
,
range
,
tel
,
color
* New
attributes:
charset
(on
meta
),
async
(on
script
)
* Global attributes (that can be applied for every element):
id
,
tabindex
,
hidden
,
data-*
(custom data attributes)
* Deprecated elements will be dropped altogether:
acronym
,
applet
,
basefont
,
big
,
center
,
dir
,
font
,
frame
,
frameset
,
isindex
,
noframes
,
strike
,
tt
W3C Working Group publishes "HTML5 differences from HTML 4", which provides a complete outline of additions, removals and changes between HTML5 and HTML4.
Logo

On 18 January 2011, the W3C introduced a logo to represent the use of or interest in HTML5. Unlike other badges previously issued by the W3C, it does not imply validity or conformance to a certain standard. As of 1 April 2011, this logo is official.
When initially presenting it to the public, the W3C announced the HTML5 logo as a "general-purpose visual identity for a broad set of open web technologies, including HTML5,
CSS
Cascading Style Sheets (CSS) is a style sheet language used for describing the presentation of a document written in a markup language such as HTML or XML (including XML dialects such as SVG, MathML or XHTML). CSS is a cornerstone techno ...
, SVG,
WOFF
The Web Open Font Format (WOFF) is a font format for use in web pages.
WOFF files are OpenType or TrueType fonts, with format-specific compression applied and additional XML metadata added.
The two primary goals are first to distinguish font file ...
, and others".
Some web standard advocates, including
The Web Standards Project
''The'' () is a grammatical article in English, denoting persons or things that are already or about to be mentioned, under discussion, implied or otherwise presumed familiar to listeners, readers, or speakers. It is the definite article in En ...
, criticized that definition of "HTML5" as an umbrella term, pointing out the blurring of terminology and the potential for miscommunication.
Three days later, the W3C responded to community feedback and changed the logo's definition, dropping the enumeration of related technologies. The W3C then said the logo "represents HTML5, the cornerstone for modern Web applications".
Digital rights management
Industry players including the
BBC, Google,
Microsoft,
Apple Inc. have been lobbying for the inclusion of
Encrypted Media Extensions (EME), a form of
digital rights management
Digital rights management (DRM) is the management of legal access to digital content. Various tools or technological protection measures (TPM) such as access control technologies can restrict the use of proprietary hardware and copyrighted works. ...
(DRM), into the HTML5 standard. As of the end of 2012 and the beginning of 2013, 27 organizations including the
Free Software Foundation have started a campaign against including digital rights management in the HTML5 standard. However, in late September 2013, the W3C
HTML Working Group decided that Encrypted Media Extensions, a form of DRM, was "in scope" and will potentially be included in the HTML5.1 standard.
WHATWG's "HTML Living Standard" continued to be developed without DRM-enabled proposals.
Manu Sporny, a member of the
W3C, said that EME would not solve the problem it was supposed to address.
Opponents point out that EME itself is just an architecture for a DRM plug-in mechanism.
The initial enablers for DRM in HTML5 were Google and Microsoft. Supporters also include Adobe. On 14 May 2014,
Mozilla announced plans to support EME in
Firefox, the last major browser to avoid DRM.
Calling it "a difficult and uncomfortable step", Andreas Gal of Mozilla explained that future versions of Firefox would remain open source but ship with a sandbox designed to run a content decryption module developed by Adobe,
later it was replaced with
Widevine module from
Google which is much more widely adopted by content providers. While promising to "work on alternative solutions", Mozilla's Executive Chair
Mitchell Baker stated that a refusal to implement EME would have accomplished little more than convincing many users to switch browsers.
This decision was condemned by
Cory Doctorow and the
Free Software Foundation.
See also
*
Cache manifest in HTML5
The cache manifest in HTML5 is a software storage feature which provides the ability to access a web application even without a network connection. It became part of the W3C Recommendation on 28 October 2014.
As of 2021, this technology is no lo ...
*
Canvas element
*
Dave Hyatt, Apple editor of HTML5 specs
*
Ian Hickson
Ian "Hixie" Hickson is the author and maintainer of the Acid2 and Acid3 tests, the WHATWG HTML 5 specification, , Google main editor of HTML5 specs
*
Polyglot markup
References
External links
HTML Living standard from WHATWG GitHu
repo* WHATW
validatorof latest HTML Living standard
W3C TRsHTML5.3is deprecated in favour of WHATWG HTML Living standard
HTML Media Extensions Working GroupHTML.next Feature requests for future versions of HTML
{{DEFAULTSORT:Html 5
2014 software
XML-based standards