Home  >  Article  >  Web Front-end  >  XHTML Tutorial: XHTML Basics for Beginners_HTML/Xhtml_Web Page Production

XHTML Tutorial: XHTML Basics for Beginners_HTML/Xhtml_Web Page Production

PHP中文网
PHP中文网Original
2016-05-16 16:44:531149browse


Original content on this site, please indicate the source for reprinting Script House.
Preface:
Nowadays, everyone pays attention to standard website building, and the technology used in standard website building is mainly XHTML CSS, and now we generally use HTML code, so how should I convert it? And what is the difference between HTML and XHTML? In this tutorial, you will learn the differences between HTML and XHTML, and how to convert HTML to XHTML. After all, XHTML is the direction of development, so I think it is necessary to publish this tutorial on this site. I feel that if you want to use standards, it's better to learn HTML first because it's easier, and then look at this tutorial.
Introduction to XHTML:
In fact, the standard we are talking about should be XML, so why should we learn XHTML? Because the current HTML code is cumbersome and full of risks, but the XML usage environment is not yet mature, an excessive product has been launched, which is XHTML, which plays a role of ups and downs. Some people also think that XHTML is an upgraded version of HTML, which is actually correct. My understanding is that XHTML is a markup language that makes HTML more standardized, making HTML more powerful and reducing the cumbersome code, especially tables.
XHTML was established as a standard by the international standards organization W3C (World Wide web Consortium) on January 26, 2000. It is considered to be the latest version of HTML and will gradually replace HTML. All browsers now support XHTML, and XHTML is compatible with HTML 4.0. Some people also think that XHTML is HTML4.01. If you write a standard-compliant website during the learning process, you can pass W3C verification. After passing the verification, you will get a mark, usually XHTML1.0 certification and CSS verification. I don’t know how many websites in China have passed these two verifications at the same time. You can go to http://www.w3.org/ to verify your site. If it meets those two rules, we will give us two pieces of code to add to your web page to show others that you have adopted standard website building. Ah, cow!
Why we use XHTML
XHTML is a transitional product that upgrades HTML to XML and is set as a standard. XHTML is fully compatible with HTML4.01 and has the syntax of XML. Let’s look at an HTML containing an error code, as follows:
 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn