XML is designed to describe data, with the focus being the content of the data.
HTML was designed to display data, with the focus being on the appearance of the data.
Basic knowledge you should master:
Before you continue, you'll need a basic understanding of:
HTML/XHTML
JavaScript or VBScript
What is XML?
XML stands for EXtensible Markup Language
XML is a markup language, much like HTML
XML is designed to describe data
XML tags are not predefined. You need to define the labels yourself.
XML uses Document Type Declaration (DTD) or XML Schema to describe data.
XML with a DTD or XML Schema is designed to be self-describing.
XML is a W3C standard
XML is a W3C standard extensible markup language that was established as a W3C standard on February 10, 1998. www.
The main differences between XML and HTML
XML is designed to carry data.
XML is not intended to replace HTML.
are
designed for different purposes:
XML is designed to describe data, and its focus is the content of the data.
HTML was designed to display data, with the focus being on the appearance of the data.
HTML is designed to display information, while XML is designed to describe information.
XML without any behavior
XML does nothing.
Maybe this is a little hard to understand, but XML won't do anything. XML is designed to structure, store and transmit information.
Below is a note from Jani to Tove, stored as XML:
<note>
<to>Tove</to>
<from>Jani</from>
<heading>Reminder</heading>
<body>Don't forget me this weekend!</body>
</note> www. This tag has a title and a message. It also contains information about the sender and receiver. However, this XML document still doesn't do anything. It's just pure information wrapped in XML tags. We need to write software or programs to transmit, receive and display this document.
XML is free and extensible
XML tags are not predefined. You have to "invent" your own labels.
The tags used to mark up HTML documents and their structure are predefined. Authors of HTML documents can only use those tags defined in the HTML standard (such as <p>, <h1>.).
XML allows authors to define their own tags as well as their own document structure.
The tags in the above example are not defined in any XML standard. These tags were invented by the authors of XML documents. XML
is a supplement to HTML
XML is not a replacement for HTML.
It's important to understand that XML is not a replacement for HTML. In the future of Web development, the most likely scenario is that XML will be used to describe data, and HTML will be used to format and display this data.
Our best description of XMLat Website Building Academy
is: XML is a cross-platform, software- and hardware-independent tool for transmitting information.
The role of XML in the future of web development
XML will be everywhere.
When we see the rapid development progress of the XML standard and the rapid speed at which a large number of software developers adopt this standard, we can't help but sigh. This is really amazing.
We firmly believe that XML will play as important a role in the future of the Web as HTML, which has always been the cornerstone of the Web, and that XML will become the most commonly used tool for all data processing and data transmission.