0% found this document useful (0 votes)
3 views2 pages

HTML vs HTML5: Key Differences Explained

Uploaded by

kinjolnandi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views2 pages

HTML vs HTML5: Key Differences Explained

Uploaded by

kinjolnandi
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd

HTML HTML5

It didn't support audio and video without It supports audio and video controls with
the use of flash player support. the use of <audio> and <video> tags.

It uses SQL databases and application


It uses cookies to store temporary data.
cache to store offline data.

Allows JavaScript to run in the


Does not allow JavaScript to run in the
background. This is possible due to JS
browser.
Web worker API in HTML5.

Vector graphics are possible in HTML with Vector graphics are additionally an
the help of various technologies such as integral part of HTML5 like SVG and
VML, Silver-light, Flash, etc. Canvas.

It does not allow drag and drop effects. It allows drag and drop effects.

Not possible to draw shapes like circle, HTML5 allows to draw shapes like circle,
rectangle, triangle etc. rectangle, triangle etc.

It supported by all new browser like


It works with all old browsers.
Firefox, Mozilla, Chrome, Safari, etc.

<HTML>,<Body> , and <Head> tags are These tags can be omitted while writing
mandatory while writing a HTML code. HTML code.

Older version of HTML are less mobile-


HTML5 language is more mobile-friendly.
friendly.

Doctype declaration is too long and Doctype declaration is quite simple and
complicated. easy.

Elements like nav, header were not New element for web structure like nav,
present. header, footer etc.

Character encoding is long and


Character encoding is simple and easy.
complicated.

It is almost impossible to get true


One can track the GeoLocation of a user
GeoLocation of user with the help of
easily by using JS GeoLocation API.
browser.
HTML HTML5

It is capable of handling inaccurate


It can not handle inaccurate syntax.
syntax.

Being an older version , it is not fast ,


It is efficient, flexible and more fast in
flexible , and efficient as compared to
comparison to HTML.
HTML5.

Attributes like charset, async and ping are Attributes of charset, async and ping are a
absent in HTML. part of HTML 5.

There are many HTML elements which have been modified or removed from
HTML5. Some of them are listed below:

Element In HTML5

<applet> Changed to <object>

<acronym> Changed to <abbr>

<dir> Changed to <ul>

<frameset> Removed

<frame> Removed

<noframes> Removed

<strike> No new tag. CSS is used for this

<big> No new tag. CSS is used for this

<basefont> No new tag. CSS is used for this

<font> No new tag. CSS is used for this

<center> No new tag. CSS is used for this

<tt> No new tag. CSS is used for this

You might also like