HTML5

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;">&lt;!DOCTYPE html&gt;</code>, which triggers the standards-compliant rendering mode (quirks mode).HTML5: Worth the Hype?

# New APIs

HTML5 Taxonomy & Status (October 2014) Recommendation/Proposed Candidate Recommendation Last Call Working Draft Non-W3C Specifications Deprecated or inactive H T M L 5 & r e l a t e d t e c h n o l o g i e s W 3 C H T M L 5 s p e c i f i c a t i o n I n i t i a l W H A T W G H T M L 5 s p e c i f i c a t i o n HTML5Markup WebMessaging WebSockets WebWorkers MicroData Dragand Drop AudioVideo Canvas2D HTML 5.1 WebSQL WebStorage HTML +RDFa MathML3.0 SVG SelectorsL1 NavigationTiming UserTiming RDFa GeoLocation WAI-ARIA TouchEvents AnimationTiming WOFF1.0 MediaCapture IndexedDatabase File API BatteryStatus XMLHttpRequest DeviceOrientation JavaScript WebGL CSS3

HTML5 related APIsSergey Mavrody "Sergey's HTML5 & CSS3 Quick Reference. 2nd Edition". Belisso Corp., 2012. ISBN 978-0-9833867-2-8 - wikimedia

* 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