Reputation: 11547
xhtml 1.1 is the evolution of xhtml 1.0, right? So i wonder what are the main differences between them. I've been using xhtml 1.0 strict for a while but, if there's an evolution, i'd like to know if there's something better about it.
obs: there are several questions that LOOKS LIKE this one but most of them are about html vs. xhtml or transitional vs. strict. I hope you don't think this is some duplicate (if it is, i couldn't find it).
thank you.
Upvotes: 4
Views: 2497
Reputation: 142
Well, this question is quite old - back when these were significant. But nowadays, these are not. So, sharing this if someone still comes looking for answers when trying to use XHTML:
There is no DTD for XHTML5.
<!DOCTYPE html>
eitherUpvotes: 0
Reputation: 147
I was under the impression xhtml 1.0 strict required a much more "dot your i's cross your t's" syntax in order to validate with W3C from what I can remember. They were simple things but required a little more concentration on bigger builds to make sure ya didn't miss them before validating.
Upvotes: 0
Reputation: 82966
Apart from the few language changes identified in @Francois's answer, the main difference is technical. XHTML 1.0 was defined partly as an intermediate step, as a way to allow web authors to move from HTML4 to the XHTML syntax.
XHTML 1.1 was a reformulation of the language into a series of modules as a framework for future development of the language by spec writers, allowing various parts to progress under separate editors and working groups, each able to progress at their own pace. You can see the same modularization process with CSS 3.
Whether modularization is a good or helpful thing or not is a matter of opinion, and there is some evidence that spec modularization doesn't work terribly well.
As it happens, with the next XHTML specification being developed as part of HTML5, that is being constructed largely as a single monolithic specification, with just a few satellite specs to augment it.
Upvotes: 6
Reputation: 24969
Have a look at the official documentation from the W3C or for your convenience:
This Appendix describes the differences between XHTML 1.1 and XHTML 1.0 Strict. XHTML 1.1 represents a departure from both HTML 4 and XHTML 1.0. Most significant is the removal of features that were deprecated. In general, the strategy is to define a markup language that is rich in structural functionality, but that relies upon style sheets for presentation.
The differences can be summarized as follows:
On the "a" and "map" elements, the "name" attribute has been removed in favor of the "id" attribute (as defined in [XHTMLMOD]).
The "ruby" collection of elements has been added (as defined in [RUBY]).
Upvotes: 8