Coding With Fun
Home Docker Django Node.js Articles FAQ

What's the difference between HTML and HTML5?

May 28, 2021 Article blog

Table of contents

There are a lot of students who can't tell THE DIFFERENCE between HTML and HTML5, so what's the difference between this article w3cschool to introduce you to HTML and HTML5?


HTML is a hypertext markup language that is the key to the world of web technology. HTML uses tag tags to describe a Web page, and its documentation contains HTML tags and text content, and HTML documents are also called web pages.

HTML5 is the next generation of HTML. Many elements have been modified in HTML5.


Document type declarations are different.

HTML is declared as



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" 

HTML5's declaration is simpler:

<!DOCTYPE html>

Elements and properties are different.

There are no charsets, async, pings, etc. in HTML, but they are in HTML5.

Many new elements have also been added to HTML5, such as audio, progress, time, data, canvas, and so on.

The drawing of the drawing

You can draw graphics directly using svg and canvas in HTML5, which is not available in HTML.

Video and audio support

In HTML, video and audio cannot be played without the support of the flash player. Video and audio playback can be supported with <video> and <audio> in HTML5.

That's the difference between HTML and HTML5. For more HTML learning follow