1. |
It didn’t support audio and video without the use of flash player support. |
It supports audio and video controls with the use of <audio> and <video> tags. |
2. |
It uses cookies to store temporary data. |
It uses SQL databases and application cache to store offline data. |
3. |
Does not allow JavaScript to run in browser. |
Allows JavaScript to run in background. This is possible due to JS Web worker API in HTML5. |
4. |
Vector graphics is possible in HTML with the help of various technologies such as VML, Silver-light, Flash, etc. |
Vector graphics is additionally an integral a part of HTML5 like SVG and canvas. |
5. |
It does not allow drag and drop effects. |
It allow drag and drop effects |
6. |
Not possible to draw shapes like circle, rectangle, triangle etc. |
HTML5 allows to draw shapes like circle, rectangle, triangle etc. |
7. |
It works with all old browsers. |
It supported by all new browser like Firefox, Mozilla, Chrome, Safari, etc. |
8. |
<html>,<body> , and <head> tags are mandatory while writing a HTML code. |
These tags can be omitted while writing HTML code. |
9. |
Older version of HTML are less mobile-friendly. |
HTML5 language is more mobile-friendly. |
10. |
Doctype declaration is too long and complicated. |
Doctype declaration is quite simple and easy. |
11. |
Elements like nav, header were not present. |
New element for web structure like nav, header, footer etc. |
12. |
Character encoding is long and complicated. |
Character encoding is simple and easy. |
13. |
It is almost impossible to get true GeoLocation of user with the help of browser. |
One can track the GeoLocation of a user easily by using JS GeoLocation API. |
14. |
It cannot handle inaccurate syntax. |
It is capable of handling inaccurate syntax. |
15. |
Being an older version, it is not fast , flexible , and efficient as compared to HTML5. |
It is efficient, flexible and more fast in comparison to HTML. |