You are on page 1of 2

1.Difference between HTML 4 and HTML 5 S.

No 1 2 HTML 4 HTML 5

HTML 4 uses common structures HTML5 uses new structures such as like headers , footers drag, drop and much more HTML 4 cannot embed video or HTML 5 can contain embedded video audio directly. HTML 4 makes and audio without using flash player use of flash player for it HTML 4 has traditional APIs HTML 5 introduced many new APIs which does not include canvas which facilitate flexibility of web and content editable APIs pages In HTML 4, local storage is not In HTML 5, new tags and new features possible and tags that can handle like local storage are enhanced only one dimension are present HTML 4 cannot handle inaccurate HTML 5 is capable of handling syntax inaccurate syntax

2.Difference between HTML and DHTML S.No 1 2 3 HTML DHTML

HTML site work slowly upon DHTML sites works faster upon client-side technologies. client-side technologies HTML is static in nature DHTML is dynamic in nature

HTML files are saved with .htm DHTML files are saved with .dhtm extension extension HTML does not make use of any DHTML uses events, methods and methods for making it dynamic. much more for providing dynamism HTML content is always static for HTML pages HTML pages does not require any DHTML requires processing from processing from browser browser which changes its look and feel

3.Difference between HTML and XHTML S.No 1 2 HTML HTML is an application of SGML XHTML XHTML is an application of XML

Attribute minimization and tags XHTML does not support omission is supported in HTML minimization of attributes and omitting

tags 3 In HTML, document row In DHTML, row headings will be in headings will remain in normal bold font In HTML, tbody portion will be in DHTML does not contain tbody and the dom tree shape and also tth element second selector should match the tth element HTML is not case sensitive XHTML is case sensitive

5 6

In HTML, document body In DHTML, html element is specified element is specified rather than and document body element does not html element replace it

4.Difference between HTML and PHP S.No 1 HTML PHP

In HTML the output remains same For PHP, the output may not be the as that of input same all the time In HTML, browser interpret the code cannot The output of PHP is HTML code which the browser can interpret PHP includes both PHP and HTML codes

2 3

HTML does not involve PHP

HTML can create webpages that PHP can design dynamic webpages are only static

And, further updates on difference between questions and answers, please visit my blog @ http://onlydifferencefaqs.blogspot.in/

You might also like