11.29. HTML- XHTML

发布时间 : 2025-10-25 13:33:15 UTC      

Page Views: 10 views

XHTML is a HTML written in XML format.

11.29.1. What is XHTML?

  • XHTML refers to Extensible Hypertext markup language

  • XHTML and HTML 4.01 are almost the same.

  • XHTML is a stricter and purer version of HTML

  • XHTML is a HTML defined as a XML application.

  • XHTML is a W3C recommendation released in January 2001.

  • XHTML is supported by all major browsers

11.29.2. Why use XHTML?

Many pages on the Internet contain “bad” HTML.

If you view it in a browser, the following HTML code works perfectly (even if it does not follow the HTML rules):

<html><head><metacharset="utf-8"><title>This is an non-standard HTMLtitle><body><h1>non-standard HTML<p>This is a paragraphbody>    

XML is a well-formed markup language that must be tagged correctly.

There are some different browser technologies in today’s technology world. Some of them run on computers, while others may run on mobile phones or other small devices. Small devices often lack the resources and ability to explain “bad” markup languages.

So-by combining the strengths of XML and HTML, XHTML was developed. XHTML is a redesigned HTML as XML.

11.29.3. The most important difference compared to HTML:

Document structure