This article briefly allows you to familiarize yourself with XHTML and understand the basic knowledge of XHTML
What is XHTMLXHTML is the abbreviation of The Extensible HyperText Markup Language. HTML is a basic WEB web design language. XHTML is an XML-based markup language. It looks somewhat similar to HTML, with only some small but important differences. XHTML is an XML that plays a role similar to HTML. Therefore, essentially, XHTML is a transition technology that combines the powerful functions of some XML and the simple features of most HTML.
At the end of 2000, the World Wide Web Consortium announced the release of XHTML version 1.0. XHTML 1.0 is a new language optimized and improved based on HTML 4.0, with the purpose of being based on XML applications. XHTML is an enhanced HTML, and its scalability and flexibility will adapt to the needs of future network applications. Although XML has powerful data conversion capabilities 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, it is expanded with XML rules to obtain XHTML. Therefore, the purpose of establishing XHTML is to achieve the transition from HTML to XML. Currently, the WEB standard that is praised internationally in website design is XHTML-based application (that is, commonly known as CSS + DIV).
XHTML VersionSo far, there are several versions of XHTML:
XHTML 1.0 Transitonal
XHTML 1.0 Strict
XHTML 1.0 Frameset
XHTML 1.1
XHTML BasicsAmong them, XHTML 1.0 Transitonal is adapted from HTML 4.01 Transitional, XHTML 1.0 strict type is adapted from HTML 4.01 Strict, and XHTML 1.0 Frameset is adapted from HTML 4.01 Frameset.
The new small-word annotation tag added in Microsoft Internet Explorer 5.0 is supported in XHTML 1.1 (see Ruby characters).
XHTML syntaxThe XHTML language must conform to the XML format. For example, there must be one to end the paragraph after it is written and used. Moreover, XHTML tags must be used in lowercase letters, if not written as; each attribute must be wrapped in quotes, if 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.