How is HTML 5 different from HTML 4?

I saw HTML 5 in the near future. How is it different from HTML 4, which has been in web development for so many years?

thank

+3
source share
5 answers

Generally speaking, there are four main areas of change:

  • Semantic markup, including the following tags:

    <section> <article> <header> <footer> <nav> <aside> <hgroup>

    This also applies to tag changes <doctype>, <html>and <meta>, as well as link links (rel attribute on a tag <a>).

  • Improved support for forms - mostly semantic additions to input types, and a few neat things, such as field autofocus and placeholder text.

  • - <video>, <audio> <canvas>. <video> <audio> ; <canvas> JavaScript.

  • DOM, JS - navigator.geolocation, window.localStorage ( ), window.applicationCache ( ), - ( JavaScript )

HTML - Safari, <video> - ( ), IE .

HTML5, , , HTML5

+9
+11

( www.alistapart.com), :

HTML4

HTML4

HTML5

HTML5

, .

+11
+5

If you are hesitant to read a thousand pages of the HTML5 specification, take a look at this article . This will give you a good overview of what HTML5 is and explain how you can use HTML5 right now, since most A-grade browsers actually support most of the new goodies; like new HTML elements and embedded video / audio.

+1
source

Source: https://habr.com/ru/post/1726875/


All Articles