Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our User Agreement and Privacy Policy.

Slideshare uses cookies to improve functionality and performance, and to provide you with relevant advertising. If you continue browsing the site, you agree to the use of cookies on this website. See our Privacy Policy and User Agreement for details.

5.
HTML 5
• Opera, Mozilla, and Apple, presented competing vision of
evolution of HTML at W3C workshop in 2004. Voted down.
• Web Hypertext Application Technology Working Group (WHATWG)
formed to continue work outside W3C.
• In 2007, W3C creates HTML working group with HTML5 as the
foundation.
• In 2009, The W3C discontinued the XHTML 2.0 working group in
favor of HTML5.

8.
HTML 4 vs HTML 5
HTML HTML5
DOCTYPE is much longer as HTML4 is based on SGML-based.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
DOCTYPE is required to enable standards mode for HTML documents.
<!DOCTYPE html>
Audio and Video are not part of HTML4 specification Audio and Videos are integral part of HTML5 specifications e.g. <audio> and
<video> tags
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 using JavaScript 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 browsers Most 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