What is part of HTML 5 and what is not part of it

?

There is a tendency to include all web formats in the new standard, including CSS 3, but what exactly does HTML 5 include?

This should be part of HTML 5, it is, of course, the HTML code described in the specification, but it is not so simple, because over time the specifications have evolved, covered external formats and were divided into several separate standards.

Additionally, there is a difference in WHATWG's design, which considers HTML 5 to be an ever-changing specification, while the W3C has set a standard that it considers stopped until the next version, HTML 5.1 or HTML 6, is created.
The plot from HTML 5 is included in the WHATWG document, a working group created by Mozilla, Opera and Apple. The latter tends to include all new web technologies in one document.

This standard developed empirically and little ordered from various sources and we will see that not everything is obvious in dividing by specifications.

What is really part of HTML 5

Icône d'un livre de comptes

Form

When creating HTML 5, WHATWG, who wanted to make it the interface format for web applications, which he actually became, described it as a collection of Web Application 1, which replaced HTML 4 and Web Forms. HOME was included after. Form tags and their associated protocols are part of the standard from the beginning.

Icône de la peinture d'un tableau

Canvases

The Canvas specification refers to the Canvas object and it is part of the HTML in the WHATWG specification. The W3C supports a separate document, but is called HTML Canvas 2D Context. In any case, Canvas is considered an element of HTML 5, so it is quite standard. It is one of the formats such as XHR that became widespread in browsers (it appeared first in WebKit) before being built into the standard. It also specifies JavaScript commands that can be used to create content.

Icône d'un camescope

Video

The <video> tag has many attributes for configuring the player and protocol. It is part of the standard, even if the codec could not be selected due to patents for the methods used.

Une note de musique

Sound

The <audio> tag is also part of the standard. It allows you to download music songs and play them, and this can be controlled using commands in JavaScript.

Code XML sur une feuille

XHTML

XHTML and HTML are part of the same standard. These are two different ways of describing the same elements for different purposes. Browsers support both formulations.

Une roue dentée

New APIs

Canvas 2D is an API for using the Canvas tag. There are others that are for storage, drag and drop, micro-data, offline mode. They are included in the WHATWG specification, even if they are not HTML tags, but are not part of the W3C .

Drag and drop, microdate, RDFa, editable content, offline, are part of HTML 5.

Complement HTML 5 but are not part of it

Une loupe

OVERSEAS DEPARTMENT OF FRANCE

DOM is the structure of the document and the way to access its elements, initially it is the subject of a separate W3C specification that has survived three main iterations: DOM Level 1, 2 and 3. DOM 4 is defined. When creating HTML 5, WHATWG decided to merge both standards. It is part of HTML 5 for WHATWG, which only concerns HTML, not W3C, which also defines the XML specification, and the DOM also supports this format.

Une lettre dans une feuille de papier

CSS 3

Version 3 has many effects, including shading and gradient, which are very useful for improving the appearance of the application. This is combined with a new HTML function that serves as an interface, but nevertheless it is not part of HTML 5. On the contrary, I want to completely separate the content and its structure from the kind that CSS gives.

Logo de SVG

SVG

This XML dialect fits into HTML pages, is part of the DOM, and can be created and modified in JavaScript. However, this is a separate language, and the SVG document can be displayed by browsers on its own .
The W3C does not include SVG in the HTML 5 recommendation, but WHATWG does include it in its definition of scalable HTML, so HTML 5 or not is a matter of standard .

Pile représentant une base de données

Indexed database

This is an API for managing the client computer database from a browser. It is the successor to WebDB, which W3C abandoned. This still complements HTML 5, the language of the web application interface, but is not part of it .

Icône de l'ouverture d'un fichier

API file

FileReader and Writer are part of the File API, which is separate but acts in conjunction with XMLHttpRequest (pre-HTML 5) and HTML 5 web workers, as well as the <input> tag. In fact, FileWriter is defined in a separate specification.

Flèche sur une unité de disque

Web storage

LocalStorage, the successor to cookies, allows you to store significant amounts of data on the client computer, so from the browser. Like sessionStorage, it was originally part of HTML 5, and then was unpinned in a standalone W3C specification.

Le globe terrestre

Geolocation

This is a different specification, even if the API works on web pages. It allows you to find out the location of the client and, therefore, provide him with services depending on the place of residence .

Ordinateurs connectés à un réseau

WebSocket

This two-way access protocol between the browser and the server is standardized by the IETF and is therefore unrelated to HTML 5. But we will seek to share them, this is ideal for applications that work with a local server, among other things (this consumes a lot of bandwidth, which limits its use on the Internet). W3C has a specification for the WebSocket API.
WebRTC when it is a W3C specification independent of HTML 5.

Conclusion

In addition to these important APIs, there are many others that confirm the intention of HTML 5 to be an interface for universal applications in the browser, be it web or locally. HTML 5 is usually an interface language only. But these elements are accompanied by a usage protocol, which led to the inclusion of the API in the specification. Others were developed separately so as not to overload her, so it's all about history more than logic .