HTML5 vs HTML4

HTML5, Programming languages

HTML (HyperText Markup Language) is the language used to make every page on the web. HTML 4 and HTML 5 are two versions of the same standard, developed by the World Wide Web Consortium (W3C) and web hypertext application technology working group (WHATWG).
html4-html5

Here are some of the main differences between these two versions.

markupMark up
HTML4 used common structures such as: ‘header’, ‘column’ etc.

HTML5 is developed keeping in mind the usage of modern websites. New tags have been added: ‘header’ for headings; ‘nav’ for website navigation block; ‘footer’ for bottom lines in web page; ‘section’, ‘article’ or ‘aside’ for particular sections such as blogs, etc.

errorError handling
HTML4 supports what is called ‘tag soup’, this is, the ability to write malformed code and have it corrected into a valid document. But the problem is that rules for doing this aren’t written anywhere, so developers just have to test malformed documents in various browsers (especially Internet Explorer) to handle any errors. Also, HTML4 lacks rules for parsing, which makes it more difficult to handle errors.

HTML5 is attempting to solve this, so that browser developers can standardize and save time and money. It is also more flexible to handle inaccurate syntax, and it specifies the rules related to the parsing and lexing.

ApiAPIs
HTML5 introduces a number of APIs (application programming interfaces) that help in creating Web applications, like:
Drag and drop
Offline database storage
Document edition
Canvas 2D, that makes it easier to integrate video elements.

browser-logosBrowser support
HTML4 is the markup language used for writing websites worldwide, and it is supported by all web browsers.

Although HTML5 is not yet an official standard, all major browsers (Safari, Chrome, Firefox, Opera, Internet Explorer) support most of its features.

multimediaMultimedia features
HTML4 needed external software, like Flash, to play videos and multimedia content. This sometimes caused problems due to incompatibility, etc.

HTML5 can embed video on web-pages without using any special software. It is also said to be capable of playing video games (8-bit) on the browser itself.

6 Comments

  1. PJ_LITTLE 03/08/2012 at 02:57:29 Responder

    Yes, there’s been a lot of improvements in HTML5, but it’s still in draft version…

  2. Peter latigo 16/07/2013 at 01:24:30 Responder

    g8t stuff just wat i was looking for

  3. Milena A. 13/08/2013 at 04:46:06 Responder

    HTML5 is much better than the previous version. There are some real improvements.

  4. Amery G. 22/10/2013 at 07:47:53 Responder

    They’ve improved so much!

  5. sushma 22/01/2014 at 02:35:16 Responder

    its baaaaaaaaaaaaaaaad

  6. PaulMagic 25/06/2014 at 04:48:40 Responder

    I think that HTML5 is much more friendly for seo

Insert comment