XHTML Web Page Tutorial

XHTML Web Page Tutorial

This article is mainly to let beginners understand some basic knowledge of XHTML and some differences between it and HTML. I hope it will be helpful to beginners.
This article is mainly to let beginners understand some basic knowledge of XHTML and some differences between it and HTML. I hope it will be helpful to beginners.
HTML language is the tool we use to build web pages. From its appearance to the present, its standards have been continuously improved and its functions have become increasingly powerful. However, there are still defects and shortcomings, and people are still constantly improving it to make it more controllable and flexible to adapt to the ever-changing application needs on the Internet. At the end of 2000, the international W3C (World Wide Web Consortium) organization announced the release of XHTML 1.0 version. What is the difference between XHTML and HTML and XML, and what new features does it add? Let us take a preliminary look at XHTML today.
XHTML 1.0 is a new language that is optimized and improved based on HTML 4.0, with the purpose of being based on XML applications. XHTML is an enhanced HTML, and its extensibility and flexibility will meet more requirements of future network applications. Below are some frequently asked basic questions about XHTML answered by Steven Pemberton, chair of the W3C's HTML working group.
Q: What is XHTML?
A: XHTML is a reformulated HTML to accommodate XML. As XML became more and more of a trend, a question arose: If we have XML, do we still need HTML? In order to answer this question, we held a two-day working meeting in San Francisco in May 1998. The conclusion of the meeting was: yes. We still need to use HTML. Because a large number of people are already accustomed to using HTML as their design language, and there are already millions of web pages written in HTML.
Q: Why was XHTML 1.0 developed independently of HTML 4.0?
Answer: That’s not the case. XHTML is precisely a reorganization of HTML 4.0. (To be precise, it is HTML 4.01, a revised version of HTML 4.0, but it is released as XHTML 1.0.) There are some necessary differences in their interpretation in XML, but on the other hand, they are still very similar, and we can regard the work on XHTML as a continuation of HTML 4.0.
Q: How does XHTML 1.0 implement the XML standard?
Answer: XHTML is an XML application. It uses XML's DTD file format definition and runs on systems that support XML. Thanks to the Namespaces feature of XML, browser manufacturers no longer need to create new private tags. They only need to include XML code snippets in XHTML code, or include XHTML code snippets in XML code.
Q: What is the main advantage of XHTML 1.0?
Answer: XML is the trend of web development, so people are eager to join the XML trend. Using XHTML 1.0, as long as you are careful to follow some simple rules, you can design pages that are suitable for both XML systems and most current HTML browsers. This means that you can design using XML right away, without having to wait until people are using XML-enabled browsers. This guideline will allow a smooth transition to XML for the web.
Another advantage of using XHTML is that it is very tight. The current poor situation of HTML on the Internet is shocking. Early browsers accepted private HTML tags, so after the page was designed, people had to use various browsers to test the page to see if it was compatible. There were often many inexplicable differences, and people had to modify the design to adapt to different browsers.
With XML we can re-establish a system where browser manufacturers unite to adopt "strict error protection standards" where the browser refuses to display a page if the XML code is incompatible, so that every error must be corrected before the design is released.
Q: With XHTML, do web designers run into the same browser compatibility issues as with HTML?
A: I hope not. "Strict error prevention standards" will help browsers respond to code in the same way, and XML's namespaces feature allows you to add your own new tags without requiring special browser support. Now all we need to ensure is that all browser developers are consistent and fully comply with the CSS we define. Write to your browser manufacturer and tell them what CSS specs you need, and you can even test whether the browser obeys your design.
Q: Is it difficult to learn XHTML?
Answer: Not at all!
Q: Who can design using XHTML 1.0?
A: Because XHTML is very simple and easy to implement, anyone who can use HTML can easily use XHTML. As more and more people use XML browsers, more jobs will be proposed to use XML, and then perhaps all of them will use XHTML.
Q: When will XHTML websites become common?
Answer: Good question. I have seen some websites built using XHTML even before XHTML 1.0 was released. I believe it will have a big development because it is so easy.
Q: How can we convert existing HTML to XHTML?
A: It's very simple because they are very similar. There is an open-source software called HTML Tidy on the W3C (www.w3c.org) website that can help you convert directly.
Q: What is the future of XHTML?
A: XHTML1.0 is just the first step of this new HTML language. The new version will not be constrained by backward compatibility with old browsers and will have more room for development.
First, we will do a thorough cleanup, removing elements that are incompatible with HTML 4.0.
Second, we modularize XHTML to allow people to use XHTML modules (such as tables) in XML applications, reducing duplication of development. It also allows special purpose designs, such as phone applications, to remain compatible as long as they are a subset of XHTML, and people can create their own HTML.
Finally, in terms of addressing needs, we will develop more forms capabilities to allow more detection to be performed on the client side and reduce network information transmission between the client and the server. In short, more exciting features will be realized.

<<:  A brief discussion of several browser compatibility issues encountered

>>:  VMware Workstation installation and installation of WIN10 operating system to connect to the external network step by step guide (super detailed tutorial)

Recommend

HTML web page hyperlink tag

HTML web page hyperlink tag learning tutorial lin...

Three ways to avoid duplicate insertion of data in MySql

Preface In the case of primary key conflict or un...

CSS example code for setting scroll bar style

The CSS implementation code for setting the scrol...

How to set a dotted border in html

Use CSS styles and HTML tag elements In order to ...

How to view the creation time of files in Linux

1. Introduction Whether the creation time of a fi...

js method to realize shopping cart calculation

This article example shares the specific code of ...

MySQL 8.0.11 installation and configuration method graphic tutorial

The installation and configuration methods of MyS...

MySQL full-text search usage examples

Table of contents 1. Environmental Preparation 2....

How to use vue.js to implement drag and drop function

Preface Adding drag and drop functionality is a g...

How to optimize MySQL query speed

In the previous chapters, we introduced how to ch...

Go to another file after submitting the form

<br />Question: How to write in HTML to jump...

Causes and solutions for MySQL deadlock

The database, like the operating system, is a sha...

react-diagram serialization Json interpretation case analysis

The goal of this document is to explain the Json ...