HTML 4 and HTML 5

Any body help me. What is the difference between HTML 4 and HTML 5 ?

Thanks
Tridhara

[FONT=Verdana]HTML4 is an established standard, whereas HTML5 is still a work in progress.

If you want an in-depth analysis of the differences, there is an article here: http://www.w3.org/TR/html5-diff/ and a discussion of that article in this thread: http://www.sitepoint.com/forums/showthread.php?610459-HTML-5-Differences-from-HTML-4&highlight=difference+HTML4+HTML5

Does that help?[/FONT]

HTML 4 became a standard in 1997
HTML 5 might become a standard in 2017 (although it might take longer)

It took about eight years after HTML 4 came out before everyone was using browsers that supported it.

Almost everything in HTML 4 is also in HTML 5 so you need to know HTML 4 in order to use HTML 5.

Some of the things proposed for HTML 5 are only needed to fix IE6 problems and so presumably now that browser is dead those things can be dropped from the proposal (eg. embed). There are also some proposals for HTML 5 that provide more than one way of doing the same thing and so presumably only one will make the final standard eg. the input ‘required’ attribute provides a subset of what can be specified with the ‘pattern’ attribute…

Basically HTML 5 is currently available for testing so that people can provide feedback on what works and what doesn’t so a decision can be made on which of the new proposals will survive into the standard.

HTML5 includes various tags that are intended to be used as semantic/structural elements (such as “header”, “nav”, and “footer”, instead of using divs with IDs and classes).

HTML5 also introduces native multimedia features, a scripting canvas that can be used without plugins like adobe flash, and geolocation support.

Many modern browsers support these new features, but older browsers do not, so you will have issues with backwards compatibility.

Yes HTML 4 is Previous version and have Full support with browser While HTML 5 still Supported by top browsers .
A New Version is launched in order to be Advanced with old . HTML 5 is latest version or say New Standard of HTML and Comes with New Elements , New Attributes , Full CSS3 Support , Video and Audio , web application etc
In HTML 5 featured to play audio and video files with <video> and <audio> elements for media playback .
thanks

No it is the current version.

No it is the proposed new version that is still some way from being finalised.

Thanks , I got that .
Thanks

DOCTYPE is much more time as HTML4 is depending on SGML-based and DOCTYPE is needed in HTML 5 to allow requirements method for HTML records. After that video and audio are not aspect of HTML4 requirements and at the other side, these two are essential aspect of HTML5 requirements e.g. <audio> and <video> labels. So, these two difference are very essential between HTML 4 and 5.

HT<L 5 uses the short version of the HTML 2 doctype that doesn’t have the information that identifies which version of HTML it is. So you can’t tell by looking just at the doctype whether you are looking at HTML 2, HTML 3.2, HTML 4.01 or the proposed HTML 5. Even with the version information people don’t understand what version of HTML is being used - for example there are HTML 4 transitional and frameset doctypes to indicate that the page uses both HTML 3.2 and HTML 4. Only when a full HTML 4 strict doctype is specified can you be sure that the page is only using HTML 4 and then only if it validates with that doctype. To be able to do the same with HTML 5 once it becomes a standard there will need to be a long HTML 5 strict doctype added.

As cool as it is to see what HTML5 can do for you, it hasn’t been unvarying like HTML4. You don’t have to concern about updating pages built using HTML4. It’s further than ten years old and it’s a set standard.

HTML5 has many new and interesting features. like:
You can play a audio/video
You can draw/animate everything on canvas
You can store large data in browser (cookie alternative)
Two pages can talk to each other with messages
and much more

Hi Shafiqul, HTML5 owns a lot of new features. It will change a user browsing experience. People will enjoy a new era of browsing.

HTML5’s New Features:

  1. <canvas> element to draw 2D.
  2. <video> and <audio> element for media playback.
  3. New certain subject element like <article>, <footer>, <header>, <nav>, <section>
  4. New form control like calendar, date, email, URL, inquiry etc.