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

What is the use of xslt element?

565


What is the extension of xslt file?

543


How xml is used in web application?

526


Does xml support user-defined tags?

558


What is Assync in XML api which version of XML parser u worked with ?

1748






What is xml format in excel?

520


If XML attribute name itself has double quotes, then how it can be represented?

651


Is xml a web service?

559


How do I find the rss feed for my blog?

531


How do I find my rss feed url?

526


How is xml parsed?

520


Can you use the xslt to convert html into vxml? : xslt

584


What is xml parser function?

573


What does a namespace-aware application do when it encounters an error?

566


What are the types of web services?

521