XML can be used to describe data, focusing on what ' data is '.
HTML is used to display data, focusing on ' How to display data '.
The knowledge you should already know before learning XML
Before you go on, you should have the following basics:
Basics of WWW, HTML and design Web pages
Web scripting languages, such as JavaScript or VBScript
You'd better learn about XML before you learn it, because you'll use that knowledge in the learning process of XML.
What is XML?
XML is the abbreviation for Extensible Markup language
XML is a markup language similar to HTML
XML is used to describe the data
The markup for XML is not predefined in XML, you must define your own markup
XML uses document type definition (DTD) or schema (schema) to describe data
XML is a self-describing language after using a DTD or schema
What are the main differences between XML and HTML?
XML is used for storing data.
XML is not an alternative to HTML, and XML and HTML are two different uses of languages.
XML is designed to describe data, focusing on what is data and how data is stored.
HTML is designed to display data, focusing on how to display data and how to display it better.
HTML is associated with displaying information, and XML is related to descriptive information.
XML doesn't do anything.
XML is designed to do nothing.
It may seem hard to understand, but in fact XML does nothing. XML is only used to organize, store, and send information.
The following example is a note ordm to Lin, using the XML format:
Lin
Ordm
Reminder
don ' t forget me this weekend!
This note has a message header, a message body, and a sender and receiver. However, the XML document still does nothing, and he only uses XML tags to store the information in the file. Someone has written out the software that sends and receives and displays this format information.
XML is free and extensible
XML tags are not predetermined, you have to create your own tags.
In an HTML document, you must use a tag that is defined in the rule. Like:
and so on.
XML allows you to define your own markup and document structure.
For example, the "" and "" tags in the above example are not defined in advance in the XML specification. These tags are "created" by the author of the XML document.
XML is supplemental to HTML
XML is not an alternative to HTML.
Total 2 page: previous 1 [2] Next page