Hypertext Markup Language 5 is a markup language used for structuring and presenting content on the World Wide Web. It is the fifth and current version of the HTML standard. wikipedia
HTML5 Logo - wikimedia
It was published in October 2014 by the World Wide Web Consortium (W3C) to improve the language with support for the latest multimedia, while keeping it easily readable by humans - and consistently understood by computers and devices such as web browsers, parsers, etc.
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 interfaces (APIs) for complex web applications.
For the same reasons, HTML5 is also a potential candidate for cross-platform mobile applications, with features having been designed with low-powered devices such as smartphones and tablets taken into consideration.
Many new syntactic features are included. To natively include and handle multimedia and graphical content, the new:
<video>, <audio> and <canvas>
elements were added, and support for scalable vector graphics (SVG) content and MathML for mathematical formulas.
To enrich the semantic content of documents, new page structure elements such as:
<main>, <section>, <article>, <header>, <footer>, <aside>, <nav> and <figure>
are added.
New attributes are introduced, some elements and attributes have been removed, and others such as:
<a>, <cite> and <menu>
have been 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.
# Markup
HTML5 introduces elements (HTML element) and attributes that reflect typical usage on modern websites.
The HTML5 syntax is no longer based on SGML (Standard Generalized Markup Language)<ref>HTML5 DTD : "HTML5 is not SGML-based, and there will be no official DTD for it."</ref><ref>HTML 5 Reference : "Although it is inspired by its SGML origins, in practice, it really only shares minor syntactic similarities." "As HTML5 is no longer formally based upon SGML, the DOCTYPE no longer serves this purpose, and thus no longer needs to refer to a DTD."</ref> 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, <code style="white-space:nowrap;"><!DOCTYPE html></code>, which triggers the standards-compliant rendering mode (quirks mode).HTML5: Worth the Hype?
# New APIs
* The canvas element for 2D drawing - syntaxxx.com * Timed media playback - whatwg.org
There is also a renewed emphasis on the importance of DOM scripting (e.g., JavaScript) in Web behavior.
Since 5 January 2009, HTML5 also includes ''Web Forms 2.0'', a previously separate WHATWG specification - whatwg.org
In addition to specifying markup, HTML5 specifies scripting application programming interfaces (APIs) that can be used with JavaScript - w3.org
# New API's
There are also new APIs, such as:
* Offline Web Applications - w3.org * Editable contentHTML * Drag-and-dropHTML * Cross-document messaging - w3.org * Browser history management - w3.org * MIME type and protocol handler registration - whatwg.org * Microdata - HTML * Web Storage, a key-value pair storage framework that provides behaviour similar to cookies (HTTP Cookie) but with larger storage capacity and improved API - w3.org * Geolocation (W3C Geolocation API)
# See also