XHTML basic question and answer

xiaoxiao2021-03-06  65

The HTML language is the tool we established a web page, from it to the present, the norms are constantly improved, and the functions are getting stronger. But there are still defects and insufficient, people are still constantly improving it, making it more convenient for control and flexibility to adapt to the network of newly varying applications on the network. At the end of 2000, the International W3C (World Wide Web Consortium) announced the release of XHTML 1.0, XHTML and HTML, XML, what new features have added, let us have to know XHTML today.

XHTML 1.0 is a new language optimized and improved on the HTML 4.0, with an XML application. XHTML is an enhanced HTML, its scalability and flexibility will adapt to future network applications more demand. Below is the common basic basis for the W3C's HTML Working Group Chairman Steven Pemberton Answer on XHTML.

Q: What is XHTML?

A: XHTML is an HTML that is re-transformed to adapt to XML. When XML is increasing, there is such a problem: if we have XML, do we still need HTML? In order to answer this question, in May 1998, we opened a two-day working meeting in San Francisco. The conclusion is: need. We still need to use HTML. Because of a large number of people have used HTML as their design language, millions of pages have been written in HTML.

Q: Why is XHTML 1.0 development of HTML 4.0?

A: It's not the case. XHTML is just a reorganization of HTML 4.0, (exactly it is HTML 4.01, is a revised version of HTML 4.0, just named XHTML 1.0.) The interpretation in XML will have some necessary differences, but On the one hand, they are still very similar, we can regard XHTML's work as a continuation on the basis of HTML 4.0.

Q: How to implement XML standards?

A: XHTML is an XML application. It uses XML DTD file format definition and runs on a system that supports XML. Here you want to thank the XML NameSpaces feature, browser manufacturers do not need to create new private labels (tags), they only need to include XML code snippets in the XHTML code, or XML code contains XHTML code snippet.

Q: What is the main advantage of XHTML 1.0?

A: XML is the trend of Web development, so people are eager to add XML trend. Using XHTML 1.0, as long as you carefully follow some simple rules, you can design a page suitable for the XML system and is suitable for most HTML browsers. This means that you can use XML immediately, without waiting for people to use browsers that support XML. This guideline can make web smooth transition to XML.

Another advantage of using XHTML is: it is very strict. The bad situation of HTML on the current network is shocked. Early browser accepts private HTML tags, so people must use various browsers to detect pages after the page design is completed, see if it is compatible, often have many inexplicable differences People have to modify design to adapt to different browsers.

With XML we can re-establish the system, browser manufacturers jointly adopt "strict error defense standards", if the XML code is not compatible, the browser refuses to display the page, so that the design must correct each error before release.

Q: Do you have XHTMLs, web designers encounter browser compatibility issues like HTML?

A: I hope it will not. "Strict Error Defense Standard" will help the browser make the same response to the code, XML's NameSpaces feature allows you to add your own new tags without requiring special browser support. Now what we need to be guaranteed is: All browser developers are consistent and fully complied with our CSS. Write a letter to your browser manufacturer, tell you the CSS specification, you can even detect if the browser listens to your design. Q: Is it very difficult to learn XHTML?

A: Nor!

Q: Who can use XHTML 1.0 design?

A: Because XHTML is very easy to implement, anyone who will use HTML can easily use XHTML. More and more people using XML browsers, more work will be recommended to use XML, then Hou may use XHTML.

Q: When is the XHTML website will popularize?

A: Good problem. I have seen some websites built using XHTML and even published in XHTML 1.0. I believe it will have a big development because it is too easy.

Q: How do we convert existing HTML to XHTML?

A: It is very simple because they are very similar. On W3C (www.w3c.org), an open-source is called HTML TIDY, which can help you convert them directly.

Q: What happens to XHTML?

A: XHTML1.0 is just the first step in this new HTML language. The new version will not be compatible with the old browser constraint, and there can be more development space.

First, we will make a thorough cleaning, delete incompatible elements in HTML 4.0.

Second, we modularize XHTML to allow people to use XHTML modules (such as tables) in XML applications, reducing duplication development. It also allows development of special purpose design, such as telephone applications, as long as they belong to XHTML, they can be kept compatible, people can create their own HTML.

Finally, in terms of resolution, we will develop more forms of forms, allowing more detection on the client, reducing network information transmission between client-servers. In short, more exciting features will be implemented.

转载请注明原文地址:https://www.9cbs.com/read-90199.html

New Post(0)