You are on page 1of 3

HTML Difference FAQs-1 1.Difference between HTML 4 and HTML 5 S.

No 1 HTML 4 HTML 5

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

2.Difference between HTML and DHTML S.No 1 2 3 4 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 DHTML uses events, methods and any methods for making it much more for providing dynamism dynamic. HTML content is for HTML pages always static HTML pages does not require DHTML requires processing from any processing from browser browser which changes its look and feel

3.Difference between HTML and XHTML S.No 1 HTML XHTML

HTML is an application of XHTML is an application of XML SGML

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

not support attributes and

In HTML, document row In DHTML, row headings will be in headings will remain in normal bold font In HTML, tbody portion will be DHTML does not contain tbody and in 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 element is specified rather specified and document body than html element element does not replace it

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

In HTML the output remains For PHP, the output may not be the same 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 design dynamic

HTML does not involve PHP

HTML can create webpages PHP can that are only static webpages

Reference: http://onlydifferencefaqs.blogspot.in/2012/08/html-difference-faqs-1.html Difference between HTML and XML 1.Difference between HTML and XML S.No 1 HTML Abbreviation: XML Abbreviation:

HTML stands for HyperText XML stands for eXtensible Markup Markup Language Language 2 Purpose: Purpose:

To display information and to To describe information and and to focus on how data looks. focus on what data is.

Tags: In HTML, tags are predefined

Tags: In XML,tags are user defined Rule on Attribute Values: Quotes required around attribute values Rule on Empty Tags: Slash required in empty tags Case sensitiveness: XML is case sensitive. Rule on End Tags: End tags required for well formed documents. In a well formed document, elements can be defined as single tag or a pair of tags and Reusability and Extensibility: Xml documents are reusable and extensible

Rule on Attribute Values: Quotes are not required for the values of attributes

Rule on Empty Tags: Slash not required

Case sensitiveness: HTML is case insensitive

Rule on End Tags: End tags are not always required.

Reusability Extensibility: Html document does not supports reusability and extensibility

Data Interchange: Not possible

Data Interchange: Possible Content Type:

10

Content Type:

Static.ie.,Content is not Dynamic.ie.,Content is changed changed every time when the every time when the page is page is reloaded reloaded Reference: http://onlydifferencefaqs.blogspot.in/2012/08/difference-between-html-andxml.html

You might also like