What is XHTML?
HTML + XML = XHTML
XHTML is basically the marriage of HTML (designed to display data) and XML (designed to describe data).
XHTML is Extensible HTML, it is very similar to HTML4.01 and is supposed to replace HTML. XHTML is much "cleaner" than HTML and is also a stricter mark-up language. XHTML is an application of XML (Extensible Mark-up Language).
XHTML became a W3C recommendation in January 2000.
Why change to XHTML?
The main reason is bad HTML! HTML is very flexible, you can write incorrect code and it may still display ok, but not on ALL browsers! And we are in the unfortunate situation that a huge percentage of web sites contain bad code! We are also in an age when more and more people are using PDA´s and mobile phones to surf the world wide web, many of these types of browsers cannot understand bad code!
XHTML aims to solve many of these problems because it is strict and clean!
XHTML vs HTML
There's very little difference between HTML 4.01 and XHTML 1.0.
The following are just some of the main differences:
You can learn more about the rules and syntax on my "XHTML Rules and Syntax" guide
NOTE:: This is a very simplistic introduction to XHTML. You really should consult the following web site for the most accurate information: