Monday, October 15, 2012

HTML5 vs HTML


The HTML we have been learning so far is  HTML4.01. HTML5 will be the new standard of HTML. HTML5 is a cooperation between the W3C and WHATWG(Web Hypertext Application Technology Working Group).A few differences between HTML5 and HTML 4.01 is listed below:

  • It is enough to give the doctype declaration in HTML5 as <!Doctype> rather than long SGML based declaration in HTML4.
  • Audio and video are integral part of HTML Specifications and can be used as tags eg:- <video>  </video>.
  • Vector graphics in HTML4 is possible using technologies such as VML,Silverlight ,Flash etc while it has been integrated in HTML5.
  • For applications that may require true Geolocation of user, we can make use of JS Geolocation API in HTML5 while such facilities are not available in HTML4.
  • In HTML4 Browser cache is used for temporary storage while in HTML5 Application cache, Web SQL database and web storage is available as client side storage.
  • In HTML4 web sockets are not available. Mechanisms like long polling and streaming are used instead. In HTML5 full duplex communication can be established with server using web sockets.
  • One more cool feature about HTML5 is the JS web worker API which allows Javascript to run in the background.
  • HTML5 is packed with new semantic elements like <header>, <footer> which is more easy and comfortable to use rather than our traditional div tag in HTML4.
Stay Tuned.
If you feel some more points has to be added, please comment below.




3 comments:

  1. Hi friends, This is Victoria from Chennai. I am a technology freak. I have read your blog. It was really a wonderful article and I was really impressed by reading this blog. Thanks for sharing this informative blog. I did HTML5 Training at FITA academy, Its really useful for me to make a bright future.

    ReplyDelete
  2. Nice blog Very useful information is providing by ur blog. find Great beginning html tutorials Very clear and helpful for beginners.

    ReplyDelete
  3. The HTML5 is developed to solve the compatibility problem that affects the current standard of html4. The goal of html5 is to support the audio, video and canvas tags.
    HTML5 training in Chennai | Html5 training chennai

    ReplyDelete