XHTML tutorial, a simple understanding of XHTML Basics

Time:2022-7-6

This article briefly introduces you to XHTML and the basic knowledge of XHTML
What is XHTML

XHTML is the abbreviation of the Extensible HyperText Markup Language. Html is a basic web page design language. XHTML is a markup language based on XML. It looks similar to HTML, with only some small but important differences. XHTML is XML that plays a role similar to HTML. Therefore, in essence, XHTML is a transitional technology, which combines the powerful functions of some XML and the simple characteristics of most HTML.
At the end of 2000, the World Wide Web Consortium released XHTML version 1.0. XHTML 1.0 is a new language optimized and improved on the basis of HTML 4.0, aiming at XML based applications. XHTML is an enhanced HTML. Its scalability and flexibility will meet the needs of more network applications in the future. Although XML has powerful data conversion ability and can completely replace HTML, it is too early to directly adopt XML in the face of thousands of existing websites designed based on HTML language. Therefore, based on html4.0, we extend it with XML rules to get XHTML. Therefore, the purpose of establishing XHTML is to realize the transition from HTML to XML. At present, the web standard respected in website design internationally is the application based on XHTML (commonly known as CSS + DIV).
XHTML version

So far, XHTML has the following versions:
  XHTML 1.0 Transitonal

XHTML 1.0 strict
  XHTML 1.0 Frameset

  XHTML 1.1

XHTML Basics

Among them, “XHTML 1.0 transitional” is adapted from “HTML 4.01 transitional”, “XHTML 1.0 strict” is adapted from “HTML 4.01 strict”, and “XHTML 1.0 frameset” is adapted from “HTML 4.01 frameset”.
The small character annotation tag added in Microsoft Internet Explorer 5.0 is supported in XHTML 1.1 (see Ruby characters).
XHTML syntax

XHTML language must conform to the format of XML. For example, there must be a paragraph to end after it is written and used. Moreover, XHTML tags must use lowercase letters, such as cannot be written as; Each attribute must be enclosed in quotation marks, for example, it must be used but cannot be used. The purpose of these practices is to enable an XHTML web page to be compiled correctly and quickly by the web browser.