There are many differences between HTML 4 and HTML 5 which are discussed below:
HTML 4
|
HTML 5 |
- It didn’t support audio and video without the use of flash player support.
|
- It supports audio and video controls with the use of
|
- It uses cookies to store temporary data.
|
- It uses SQL databases and application cache to store offline data.
|
- Does not allow JavaScript to run in browser.
|
- Allows JavaScript to run in background. This is possible due to JS Web worker API in HTML 5
|
- Older version of HTML are less mobile-friendly.
|
- HTML 5 language is more mobile-friendly.
|
- 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.
|
Name : Thakor Hardik
Id No : 18CE129