Showing posts with label HTML5. Show all posts
Showing posts with label HTML5. Show all posts

Saturday, October 6, 2012

HTML5 basic learning



HTML4
HTML5
DOCTYPE is much longer as HTML4 is based on SGML-based.
"http://www.w3.org/TR/html4/strict.dtd">
DOCTYPE is required to enable standards mode for HTML documents. 
Audio and Video are not part of HTML4 specificationAudio and Videos are integral part of HTML5 specifications e.g.
Vector Graphics is possible with the help of technologies such as VML, Silverlight, Flash etc.Vector graphics is integral part of HTML5 e.g. SVG and canvas
It is almost impossible to get true GeoLocation of user browsing any website especially if it comes to mobile devices.JS GeoLocation API in HTML5 helps identify location of user browsing any website (provided user allows it)
Browser cache can be used as temporary storage.Application Cache, Web SQL database and Web storage is available as client side storage. Accessible usingJavaScript interface in HTML5 compliant browsers.
Web Sockets are not available. Generally used mechanisms are long polling and streaming.Full duplex communication channels can be established with Server using Web Sockets. Accessible using JavaScript interface in HTML5 compliant browsers.
Works with all old browsersMost of modern browser have started supporting HTML5 specification e.g. Firefox, Mozilla, Opera, Chrome, Safari  etc.
Does not allow JavaScript to run in browser. JS runs in same thread as browser interface.Allows JavaScript to run in background. This is possible due to JS Web worker API in HTML5

Ref. Links:
http://www.cravingtech.com/5-differences-between-html4-and-html5.html
http://www.tutorialchip.com/tutorials/html4-and-html5-key-differences-compare-side-by-side/

HTML5 Video Tag Information:
http://www.html5rocks.com/en/tutorials/video/basics/
http://www.mikechambers.com/blog/2008/05/27/poc-implementing-html-5-video-element-using-javascript-and-flash/
http://www.mikechambers.com/mesh/files/video_javascript/
http://player.vimeo.com/api/examples/simple

The State Of HTML5 Video:
http://www.longtailvideo.com/html5