What’s new between HTML5.2 and HTML5?

Asked

Viewed 336 times

4

According to Wikipedia on topic HTML, note the following table of versions of HTML and their respective years:

inserir a descrição da imagem aqui

Entering the HTML5 topic on the same site, it just says:

This new version brings with it important changes in the role of HTML in the Web world, through new features such as semantics and accessibility. Enables the use of new features before possible only with the application of other technologies. Its essence has been improve the language with the support for the latest multimedia, while keeping it easily readable by humans and consistently understood by computers and other devices (browsers, parsers etc).

That is, it is a generic description of version 5 of HTML, but I found nothing about subdivisions of the version (5.1 and 5.2).

My question is - leaving aside version 5.1 -, what version 5.2 brings again compared to the initial version 5 of HTML?

1 answer

5


The list of HTML changes 5.1 stop the 5.2 is a bit extensive, but is documented, including showing the compatibility between browsers for each new implementation. You can see the full list here: https://w3c.github.io/test-results/html52/implementation-report.html

The List is divided into 3 parts. Altered Resources, Removed Features and Resources in Implementation.

inserir a descrição da imagem aqui

This is just a bunch of Documented Changes, Check the rest on the link: https://w3c.github.io/test-results/html52/implementation-report.html

inserir a descrição da imagem aqui


Interesting HTML 5.2 news

  • A new way of doing modals: Of all the novelties implemented with the new version of HTML, the introduction of the element <dialog> is by far the most interesting.

    <dialog> <h2>Cabeçalho do modal</h2> <p>Conteúdo do modal, podendo incluir texto, imagens, links, vídeos etc.</p> </dialog>

  • Multiple main elements: Previously, each web page could only contain one element <main> or would be found invalid.

  • Payment Apis in iframes

  • Styles in the body of the page: Although style settings are normally inserted in documents, from HTML 5.2 it becomes valid to define styles within the element <body> also, although the W3C itself does not recommend the practice.

    <body> <p class="azul">Texto azul!</p> <style> .azul { color: #0000FF; } </style> </body>

  • Headers in subtitles: From HTML 5.2, it is possible to enter headers (<h1> until <h6>) in elements <legend> form.

  • What becomes obsolete or invalid with HTML 5.2

The element <keygen>, previously used to generate public keys on forms has been removed from specifications.

The elements <menu> and <menuitem> also no longer part of the HTML specifications. They were used until then to create navigation menus or context.

From now on, the element <p> may contain only elements inline as valid children. That is, elements of the types inline-block, inline-table or block can no longer be nested within an element <p> semantically valid form.


Out of HTML 5.2

The elements <keygen>, <menu> and <menuitem>.
Inputmode attribute for elements <text> and the attributes of dropzone.
Method showModalDialog.
To API plugin was marked as obsolete.

The following constructs are now valid in HTML 5.2:

Use of the element <style> within the element <body>.
Multiple elements <main> in the DOM, provided that only one is visible to the user.
Possibility of having an element <div> as the child of an element <dl>.
Headers inside an element <legend> in a <fieldset>.

Source 1: https://imasters.com.br/desenvolvimento/html-5-2-o-que-nova-recomendacao-do-w3c-traz-de-novidade-para-o-desenvolvimento-web

Source 2: https://www.codigofonte.com.br/artigos/conheca-o-html-5-2


Version 5.1: This is the list of implementations of HTML 5.1 https://w3c.github.io/test-results/html51/implementation-report.html

Version 5.3 Draft: List of Drafts from HTML 5.3 https://www.w3.org/TR/html53/

Browser other questions tagged

You are not signed in. Login or sign up in order to post.