What is the Difference Between XHTML 1.0 Strict and XHTML 1.1?
As some of you (e.g., Louis) may have noticed during the recent site redesign, I decided to switch the default doctype from XHTML 1.0 Strict to XHTML 1.1. Just in case you were wondering, XHTML 1.1 is different than XHTML 1.0 in three important ways 1:
- On every element, the
langattribute has been removed in favor of thexml:langattribute - On the
aandmapelements, thenameattribute has been removed in favor of theidattribute - The “
ruby” collection of elements has been added
Beyond these three differences, XHTML 1.1 is identical to XHTML 1.0. Personally, I chose to markup my current design with XHTML 1.1 because of its advancement of the web-standards paradigm: complete separation of structure, behavior, and presentation.
References
- 1 As listed at W3C Working Draft for XHTML 1.1
Related articles
- Bare-Bones HTML/XHTML Document Templates
- XHTML Document Header Resource
- The Friendliest Link Targets in the Neighborhood
- Content Negotiation for XHTML Documents via PHP and htaccess
- WordPress RDF Source Makeover
- A Complete CSS Template File
- One Link to Open Them All
About this article
This is article #486, posted by Perishable on Sunday, January 27, 2008 @ 01:43pm. Categorized as Structure, and tagged with code, markup, reference, xhtml, xml. Updated on January 27, 2008. Visited 9384 times. 7 Responses »
Bookmark • Trackback • Comment • Subscribe • Explore
« Serve Yourself: Why Feedburner Needs a Feed Fix • Up • Laser-Focused Feeds and Smarter Feed Management »
1 • January 27, 2008 at 2:48 pm — Louis says:
That’s courageous to go with XHTML 1.1, but as it’s very close to XML, you have to serve it with the proper content-type. A quick look in Firebug shows that your are serving this page in text/html.
I’m sure you are the kind of person who only refers to W3C texts — and I agree that it’s the more trustable way — so I give you this link as a reference :
http://www.w3.org/TR/xhtml-media-types/xhtml-media-types.html#summary
Also, I see that you are using the xml declaration at the very top of your source code. Once again, very brave, as IE goes quirks mode then. Though, the page I’ve linked previously explains that :
I hope I started a reflexion on the relevance of going XHTML 1.1. I mean, 1.1 is so close to XML, that you may just want to wait for XML democratization.