Home » Ask & Discuss » Other Courses » Computer Applications « Back to Discussion
Computer Applications
Comments (2)
| 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 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 | |












XML-Extended Markup Language
HTML-hyper text mark up language
XML files are meant to hold data and data in an xml file is well described. If you look at an xml file you can say what it holds. For example if you find a number in an xml file you can find out easily what that number identifies, whether it is the number of products, or the price of a product etc. In html it is not the case.
HTML is used to display the data in a formatted way. You can apply styles and use different layouts to display the data in an html file. The data that is displayed in an html file could come from an xml file.
So to say in simple words, html displays the data and xml holds the data!