开发者

What are the differences between xhtml 1.0 strict and xhtml 1.1?

开发者 https://www.devze.com 2023-03-15 04:45 出处:网络
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 i

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 h开发者_JAVA技巧ope you don't think this is some duplicate (if it is, i couldn't find it).

thank you.


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]).


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.


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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号