XHTML is dead? Long live XHTML!

Original author: Jeremy Keith
  • Transfer
The heated debate over the discontinuation of XHTML2 is misleading to a huge number of people, you just have to look at the number of comments on this blog .
In order to bring clarity and enlightenment in your head, I will try to supplement the topic SelenIT friend about the difference XHTML2 and XHTML1, and the maximum available to explain the difference between the two, it would seem, family things.

The main mistake lies in the consonant, even the same, name of two completely different technologies. If you look around, you will notice that many things are called by similar names, but are not necessarily close relatives: JavaScript is associated with Java, but, almost, has nothing to do with it; DHTML is similar in sound to HTML, but is essentially just a name that combines the three technologies - HTML, CSS, and JavaScript.
This is the case with XHTML 2. If you think that by burying XHTML 2, you will bury both XHTML1.0 and XHTML 1.1, you will be wrong.
XHTML 1.0 is simply a description of HTML 4 elements using XML syntax:
  • lowercase tags and attributes
  • writing attribute values ​​in a frame (quotation marks)
  • close all string tags
  • use a slash for single elements (img, br, meta)

XHTML 1.1 is almost the same, but with the requirement to treat the mime-type of a document as XML.
XHTML 2, unlike the above types, has very little in common with HTML 4. This project was created from scratch and does not even have the prerequisites for backward compatibility.
Sadly enough, the very fact of the start of talk about abandoning XHTML 2 will lead to the fact that XHTML 1 will begin to be seen as unpromising. However, the use of more stringent syntax, compared to HTML 4, IMHO, teaches order.
Stopping work on XHTML 2 does not mean the death of XHTML syntax. If you want to close all tags and quote attributes, do so. You can use both the existing XHTML 1 specification and select the HTML 5 being developed.
And remember! XHTML lives in HTML 5. Yes, HTML 5, unlike XHTML 2, was designed with backward compatibility. So, if you have a page in XHTML 1 format, then you can very easily make HTML 5 out of it ...

Take the line:
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

Replace with:


Everything, you have pure HTML 5.

XHTML 2 died. Long live XHTML ... in the face of HTML 5.

Also popular now: