Hi guys!!! Sorry for the delay to write this post. Today we’re gonna see about the differences between HTML and HTML5. It’s the evolution of web development which is inevitable. Continuous changes and updates are the common things nowadays in the technological world. In the previous post we have see some basic facts of HTML. Today as a little bit advance we are going to see how HTML and HTML5 differ from each other. HTML5 is actually the 5th version of HTML in which there are a quite amount of changes.
- HTML5 has high-level audio and video support which makes it uniquely shine from the previous versions of HTML. In the previous versions of HTML, flash player is needed to support audio and video files. But in HTML5 just with the use of <audio> and <video> tags it supports the files.
- Web SQL databases and application cache are being used to store temporary data in HTML5, but in HTML only browser cache /cookies can be used for this purpose.
- Vector graphics is an integral part of HTML like SVG and canvas, but it is possible in HTML only with the help of VML, flash etc.
- HTML doesn’t allow JavaScript to run in browser but HTML5 allows JavaScript to run in background due to the presence of JS Web worker API.
- HTML5 allows drag and drop effects which is not allowed in HTML.
- HTML5 language is more mobile friendly than previous versions of HTML.
- New elements have been introduced for web structure like nav, header, footer etc. which were not present in previous versions.
- Doctype declaration is complicated in HTML while Doctype declaration is quite simple and easy in HTML5.
- HTML5 is capable of handling inaccurate syntax but HTML can not handle inaccurate syntax.
- Attributes of charset, async and ping are a part of HTML5 which were absent in HTML.
- Many HTML elements have been modified or removed (frameset, frame, noframes) from HTML5. And also many new elements are added (like nav, audio, time, progress, header, footer etc.)