XML is an extensible Markup Language, an extensibility identifier language.
This is a standard definition. So what is a sign language, why is it scalable? It has been a bit confused. I think we will understand it like this:
You are very familiar with HTML, it is a tag language, remember its full name: "Hypertext Markup Language" hypertext tag language. understood? At the same time, there are many labels in HTML, similar to
,
, etc., are all specified and defined in HTML 4.0, and the XML allows you to create such a label, so it is called scalability.
There are several easily confusing concepts to remind everyone:
1.xml is not a markup language. It is just a meta-language used to create tag language (such as HTML). God, it is confused! Don't matter, you just know this: XML and HTML are different, and it uses a wide range of HTML, we will be carefully introduced later.
2.xml is not an alternative product of HTML. XML is not an HTML upgrade, it is just HTML supplements, and extension more features for HTML. We will continue to use HTML in a longer period of time. (But it is worth noting that HTML upgrade version XHTML is indeed close to the adaptation XML.)
3. You cannot write a web page directly with XML. Even if the XML data is included, it is still necessary to convert to an HTML format to display on the browser.
Below is a XML sample document (Example 1), used to represent this article:
XML Version = "1.0"?> XML Quick Start title> ajie author> ajie@aolhoo.com email> 20010115 date > myfile>
note:
1. This code is just the code, so that you will preliminary feelings to know XML, do not implement any specific applications;
2. Among these statements like
, are the tags you created, they are different from HTML tags, such as is the meaning of the article title, HTML is the page title .