[Introduction to ASP. NET] tolerance
-- W3C Web standards
The villagers in the ancient Valley are rich and the Old Man maintains the classic and order. However, a migrant who is dissatisfied with the status quo claims that a better world is waiting for everyone and encourages the villagers to follow. However, the old man's majesty and the law of the holy suppression of the villagers' agitation, drifting also were executed. One-day disaster strikes the valley. Although the old man still tries to maintain the law that is challenged by the villagers' desire to survive. However, the violence still occurred, old people were defeated, and new roads and new lives were found by villagers. With gratitude, future generations regard the previous wandering as a prophet, even though he is dead.
-- Fang Long's preface to tolerance
■ Tolerance-W3C dream
Every brilliant masterpiece seems to start with its pure dream. Tim Berners-Lee wrote in his blog: "the goal of the World Wide Web is to create a place where information can be shared. We should have a place where everyone can contribute and create ." Therefore, a hypertext markup language (HTML) based on plain text is born out of the SGML language. It is coupled with the resource location technology (URL) for information location) this is the Web architecture that Berners-Lee brings to us.
As the world wide web becomes chaotic, the game between various forces is full of flexibility, vigor, conspiracy, and wisdom: Microsoft uses its operating system advantages to bundle IE to squeeze cross-site views; it is said that Baidu has been blocking Google for a year or two. Kai-Fu Li recently seems to be the godfather of Chinese computer science students. China North-South Telecom has been unable to communicate with each other since its division ...... After several years of history, people found that the World Wide Web seems like world wide, but it is often governed by a certain commercial force.
The world is always the truth, and the Web standard is the freedom flag of the W3C Industry Alliance for the chaotic Web Client technology. Its dream is to benefit everyone from the World Wide Web, there will be no difference in their hardware, software, network infrastructure, mother tongue, culture, geographic location, physical or mental capabilities.
■ Simultaneous text-Markup Language Development History
Aside from SGML in ancient times, the most famous markup language is Tim Berners-Lee's HTML. At the beginning of the design, his idea was very simple: Combine page editing with the Browsing System and describe the web pages and links between pages based on the text format. It has some advantages to make it widely used: first, it is simple, and almost anyone can master it in an afternoon and edit the web page with notepad; second, it can run on any platform or browser; third, Hyperlinks make all web pages in the World Wide Web form a mesh connection.
Figure 9-1 is an example of HTML and its actual browsing effect. It can be seen that HTML stores and browses information in almost the most concise way. The standard tag has two tasks: one is to represent the composition structure of the document itself, and the other is to define the browsing style. From the perspective of the librarians, the data structure described in the previous example is 9-2.
As more and more content is moved to the Internet, the first problem with HTML has emerged. Earlier HTML was based only on text, but soon people began to ponder over the placement of images, audios, videos, and other multimedia information on the Internet. What kind of standard labels should be added to evolve into a commercial struggle between Netscape and Microsoft. This is not a simple topic. If Netscape and Microsoft finally generate two completely unrelated HTML versions, people will have to choose between the two browsers. What's even more terrible is that content developers must either choose one of the two versions of the vendors, or spend more manpower and material resources to create two composite versions of the web pages. As a result of the compromise between the two, coupled with checks and balances from other forces, it is certainly inseparable from the personal efforts of Berners-Lee-the emergence of the W3C responsible for standards in October 1994.
HTML has labels that control the structure of a document, such as <p>, <ul>, and <font>, <B>, this makes it easy for webpage editors to mix the structure and performance of documents. The most well-known is the table layout mode. None of the nested tables are actually used for list data. This is the second problem encountered by HTML. The problem is that the file size is infinitely larger and the style is difficult to modify. More importantly, the data structure from the perspective of the librarians has been completely damaged by the presentation labels, for example, "Author: <B> Lao Yan </B> ". As a medium for information exchange, the damaged data structure makes the second use of HTML pages very valuable. The 96-Year-Old gradually mature CSS makes it possible to completely separate the Page Structure and Performance. That is to say, no page presentation tags can appear in HTML documents. HTML tags that complement CSS are <div> (Block) and <span> (built-in). They provide a general mechanism to add structures to documents, instead of introducing other performance layers in the content.
< Html > < Head > < Title > Tolerance-W3C Web standards </ Title > </ Head > < Body >
< Div ID = "Secondtitle" > Asp.net Quick Start </ Div >
< Div ID = "Title" > Tolerance-W3C Web standards </ Div >
< Div ID = "Author" > Lao Yan </ Div >
< Div ID = "Summary" > Brief Introduction to the Development and functions of web standards </ Div >
< Div ID =" Catalog" > < Ol > < Li > Tolerance-W 3C dream </ Li >
< Li > The development history of Markup Language </ Li >
< Li > The role of Buddha's gold-CSS </ Li >
< Li > Communication-Dom and ecmasrept </ Li > </ Ol > </ Div >
< Div ID = "Content" > Body section ...... </ Div >
</ Body > </ Html >
From the very beginning, a basic HTML rule is ignored if the browser encounters an incomprehensible tag. This flexibility allows us to see the <author> identifier in the document, and then the browser simply skips it. This is a good way to practice and expand the Web, while maintaining backward compatibility. But the better way is not to rely heavily on centralized and fixed standards, but to allow the browser to learn new tokens. Suddenly, you don't have to worry about the meaning of the identifier. Perhaps it is most appropriate for us to consider the issue from the perspective of the librarians-All we need is to pass the data to the other party. This description can even be generated directly from the database, the XML file is as follows:
<? XML version = "1.0" encoding = "ISO-8859-1" ?>
< Article >
< Title > Tolerance-W3C Web standards </ Title >
< Secondtitle > Asp.net Quick Start </ Secondtitle >
< Author > Lao Yan </ Author >
< Summary > Brief Introduction to the Development and functions of web standards </ Summary >
< Catalog >
< Para > Tolerance-W 3C dream </ Para >
< Para > The development history of Markup Language </ Para >
< Para > The role of Buddha's gold-CSS </ Para >
< Para > Communication-Dom and ecmasrept </ Para >
</ Catalog >
< Content > Body section ...... </ Content >
</ Article >
However, only the preceding description file is available. The label only has its own meaning. The definition file (DTD or schema) is used to describe the meaning and structure of the label. Other systems identify your XML by defining a file, or use the XSL style file to send it to the browser for browsing.
It is foreseeable that if all web pages on the World Wide Web are XML files, the information flow can be quickly transferred. However, the reality is that the world has built up nearly 80 GB of HTML webpages with varying technical levels. To make these web pages complete XML overnight, there is obviously not enough motivation, so W3C has developed a page description language called "gentle and friendly Upgrade Method"-XHTML, there are two key points to improve XHTML. One is to follow the XML syntax rules to write HTMLCodeThe second is the separation of representation and structure.
■ Buddha's role in gold-CSS
Cascading Style Sheet is a simple mechanism that tells the browser how to modify the page content (such as font, color, and space, w3C is not widely supported in css2 and even dreamed of supporting visual, hearing, Braille and other devices. In their official website, the original saying is to use eyes, ears, sound and touch to browse the Web page. From the perspective of user experience and tolerance, CSS's future tasks are not as simple as making up webpages.
The syntax of CSS is not complex. Typographical positioning depends on the box model, 9-3. However, the mainstream ie6.0 and Firefox 1.x have different interpretations of the box model. It is said that IE7 still has a CSS bug.
■ Communication-Dom and ecmascript
The Document Object Model is used to provide unified applications.ProgramA programming interface that restores an HTML or XML document to a tree data structure. Each node of a tree is represented as a text item in an HTML Tag or HTML Tag. The tree structure accurately describes the associations between tags and text items in HTML documents. You only need to modify the nodevalue attribute values of related Tree nodes.CompositionAny label in the file can also be easily located anywhere on the page, along the tree structure of the document in the upper (parent), lower (child) and one side of the (sibling) node navigation. In addition, DOM technology allows us to manipulate the tree structure of a document, including creating, deleting, and moving nodes.
Dom-based ecmascript is a unified web scripting language standard by W3C. The so-called scripting language is embedded in HTML files and interpreted and executed by the browser to increase interaction and reduce server pressure, based on object and event-driven ). However, JavaScript and JScript have long been discriminated against the same parent-child brother. Programmers laugh and say they have no expertise in addition to adding a rough grass to the webpage, although Programmers spend a lot of time writing form verification scripts, users just need to click in the browser to disable and bypass verification. What's even more maddening is that although JavaScript of various versions is known to comply with the standards, they are all isolated and programmers suffer!
Despite the recent emergence of Ajax technology, the old JavaScript tree has become a new one! But can I rest assured that my website is built on a fragile foundation? Netease's 126 mailbox was recently revised and claimed to be extremely fast, but even the mailbox operation interface was closed with JavaScript. Can my mother know why? A long time ago, I saw such a warning: Don't rely on JavaScript ......