Difference b/w XML and HTML.

Answer Posted / amit gupta

The main difference between XML and HTML :
XML was designed to carry data.
Before you continue you should have a basic understanding of the following :

XML was designed to describe data and to focus on what data is. HTML was designed to display data and to focus on how data looks .

HTML is about displaying information, while XML is about describing information.

XML is free and extensible

XML tags are not predefined. You must "invent" your own tags.

The tags used to mark up HTML documents and the structures of HTML documents are predefined. The author of HTML documents can only use tags that are defined in the HTML standard (like , etc.).

XML allows the author to define his own tags and his own document structure.

The tags in the example above (like <to> and <from>) are not defined in any XML standard. These tags are "invented" by the author of the XML document.

Is This Answer Correct ?    6 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How xml is used in web application?

451


how to transform an XML file into HTML using XSL transformation (XSLT)?

485


Explain about xml signature?

490


Is xml format or content-driven?

503


How do I add an rss feed to my website?

453






How do I get an rss feed for my podcast?

437


What is rss in html?

471


What is the difference between simple element and complex element?

528


Is there an app to read blogs?

464


How do I run an xml file?

462


What is the best rss feed app for iphone?

463


What is namespace in xslt?

478


Write about well-formed and valid xml documents?

496


What is an xml schema used for?

479


What is xmlns xs?

487