Differences between HTML and HTML5
Apart from Project Architecture, Project Deadline, HR Policy, and our Salary (which is always less in comparison), there is one constant thing found in every field of "Information Technology" and i.e periodic updates/changes are always certain.
So technically speaking, no language is capable enough to avoid upgrades and/or new releases. (Not even our Mark-Up Language HTML)
Objective Behind the Release of HTML5
The only primary objective for the release of HTML5 was to improve the (W3C) World Wide Web Consortium experience for the end users and developers (more or less like us).Differences between HTML and HTML5
HTML | HTML5 |
---|---|
Without integration with Flash Player, Video and audio won't work.
|
The biggest advantage that HTML5 has over its unnumbered predecessor is that it has high-level audio and video support
|
In HTML, vector graphics was only possible by using it in conjunction with different technologies like Flash, VML, and Silver-light, etc
|
SVG, canvas and other virtual vector graphics are already supported in HTML5
|
In HTML, only browser cache could be utilized for storing data temporarily
|
HTML5 uses web SQL databases, application cache for temporarily storing data
|
Doctype declaration in Html is too longer
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> |
DOCTYPE declaration in Html5 is very simple "<!DOCTYPE html>
|
It uses cookies for storing local data.
|
It provides local storage in place of cookies.
|
Not possible to draw shapes like circle, rectangle, triangle.
|
Using Html5 you can draw shapes like circle, rectangle, triangle.
|
Does not allow JavaScript to run in the browser. JS runs in the same thread as a browser interface.
|
Allows JavaScript to run in the background. This is possible due to JS Web worker API in HTML5
|
Works with all old browsers
|
Supported by all new browser.
|
HTML5 includes the following updates:
- Deprecated elements had been dropped totally like center, font, and strike.
- New elements had been added including video, time, nav, section, progress, meter, aside and canvas.
- New input attributes had been added including email, URL, dates and times.
- New attributes had been added including charset, async and ping.
- New APIs had been added for offline caching support, drag-and-drop support.
- Support for MathML to allow better display of mathematical notations.
- JavaScript can now run in the background thanks to the JS Web worker API.
Comments
Post a Comment