Monday, 17 October 2016

What is difference between html and html5

Html
  1. Doctype declaration in Html is too longer
     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/stric...">
  2. character encoding in Html is also longer
     <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
  3. Audio and Video are not part of HTML4
  4. Vector Graphics is possible with the help of technologies such as VML, Silverlight, Flash etc
  5. It is almost impossible to get true GeoLocation of user browsing any website especially if it comes to mobile devices.
  6. Html5 use cookies.
  7. Not possible to draw shapes like circle, rectangle, triangle.
  8. Does not allow JavaScript to run in browser. JS runs in same thread as browser interface.
  9. Works with all old browsers
Html5
  1. DOCTYPE declaration in Html5 is very simple "<!DOCTYPE html>
  2. character encoding (charset) declaration is also very simple <meta charset="UTF-8">
  3. Audio and Videos are integral part of HTML5 e.g. <audio> and <video> tags.
  4. Vector graphics is integral part of HTML5 e.g. SVG and canvas
  5. JS GeoLocation API in HTML5 helps identify location of user browsing any website (provided user allows it)
  6. It provides local storage in place of cookies.
  7. Using Html5 you can draw shapes like circle, rectangle, triangle.
  8. Allows JavaScript to run in background. This is possible due to JS Web worker API in HTML5
  9. Supported by all new browser.
****** Thank you ! ******
www.gatitaa.com

No comments:

Post a Comment