I was trying to understand basic differences of HTML5 against HTML (or HTML4 to be specific) and couldn’t find exact information I was looking for. Hence I decided to compile it. Hope others will find it useful too.
|DOCTYPE is much longer as HTML4 is based on SGML-based.<!DOCTYPE HTML PUBLIC “-//W3C//DTD HTML 4.01//EN”
|DOCTYPE is required to enable standards mode for HTML documents.
|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)|
|Works with all old browsers||Most of modern browser have started supporting HTML5 specification e.g. Firefox, Mozilla, Opera, Chrome, Safari etc.|