8.17.2012

HTML Difference FAQs-1

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

2.Difference between HTML and DHTML
S.No
HTML
DHTML
1
HTML site work slowly upon client-side technologies.
DHTML sites works faster upon client-side technologies
2
HTML is static in nature
DHTML is dynamic in nature
3
HTML files are saved with .htm extension
DHTML files are saved with .dhtm extension
4
HTML does not make use of any methods for making it dynamic. HTML content is always static
DHTML uses events, methods and much more for providing dynamism for HTML pages
5
HTML pages does not require any processing from browser
DHTML requires processing from browser which changes its look and feel

3.Difference between HTML and XHTML
S.No
HTML
XHTML
1
HTML is an application of SGML
XHTML is an application of XML
2
Attribute minimization and tags omission is supported in HTML
XHTML does not support minimization of attributes and omitting tags
3
In HTML, document row headings will remain in normal font
In DHTML, row headings will be in bold
4
In HTML, tbody portion will be in the dom tree shape and also second selector should match the ‘t’th element
DHTML does not contain tbody and t’th element
5
HTML is not case sensitive
XHTML is case sensitive
6
In HTML, document body element is specified rather than html element
In DHTML, html element is specified and document body element does not replace it

4.Difference between HTML and PHP
S.No
HTML
PHP
1
In HTML the output remains same as that of input
For PHP, the output may not be the same all the time
2
In HTML, browser cannot interpret the code
The output of PHP is HTML code which the browser can interpret
3
HTML does not involve PHP
PHP includes both PHP and HTML codes
4
HTML can create webpages that are only static
PHP can design dynamic webpages

No comments:

Post a Comment