Hot discussions about the
termination of support for XHTML2 are misleading a huge number of people, one has only to see the number of comments on
this blog .
In order to bring clarity and enlightenment to your heads, I will try to complement the
topic of Comrade SelenIT about the difference between XHTML2 and XHTML1, and explain as much as possible the difference between these two seemingly native things.
The main mistake lies in the consonant, even the same, the name of two completely different technologies. If you look around, you will notice that many things are called similar names, but are not necessarily close relatives: JavaScript is associated with Java, but almost has nothing to do with it; The word DHTML is similar in sound to HTML, but is, in fact, just a name combining three technologies - HTML, CSS, and JavaScript.
The same is true for 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 just a description of HTML 4 elements using XML syntax:
- lower case tags and attributes
- writing attribute values in a frame (quotes)
- close all string tags
- use slash for single elements (img, br, meta)
XHTML 1.1 is almost the same, but with the requirement to treat the mime-type of the 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 prerequisites with backward compatibility.
Sadly, the very fact of starting to talk about abandoning XHTML 2 will result in XHTML 1 being viewed as hopeless. However, the use of a stricter syntax, compared to HTML 4, IMHO, teaches order.
Terminating XHTML 2 does not mean the death of the XHTML syntax. If you want to close all tags and enclose attributes in quotes, do it. You can use both the existing XHTML 1 specification and select 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 easily make HTML 5 out of it ...
We take the line:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
Replace with:
<!DOCTYPE html>
Everything, you have pure HTML 5.
XHTML 2 is dead. Long live XHTML ... represented by HTML 5.