Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XHTML1.0 vs 1.1?

Status
Not open for further replies.

JamesGMills

Programmer
Aug 15, 2005
157
GB
Hi,

Difference please between

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.1//EN" "
AND

<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
Appart from the obvius that one is 1.0 and one is 1.1 the 1.0 seems to be transitional and 1.1 is not?

Can anyone is simple tearms explain the difference.

Thanks
 
W3C said:
What is the difference between XHTML 1.0, XHTML Basic and XHTML 1.1?

The first step was to reformulate HTML 4 in XML, resulting in XHTML 1.0. By following the HTML Compatibility Guidelines set forth in Appendix C of the XHTML 1.0 specification, XHTML 1.0 documents could be compatible with existing HTML user agents.

The next step is to modularize the elements and attributes into convenient collections for use in documents that combine XHTML with other tag sets. The modules are defined in Modularization of XHTML. XHTML Basic is an example of fairly minimal build of these modules and is targeted at mobile applications.

XHTML 1.1 is an example of a larger build of the modules, avoiding many of the presentation features. While XHTML 1.1 looks very similar to XHTML 1.0 Strict, it is designed to serve as the basis for future extended XHTML Family document types, and its modular design makes it easier to add other modules as needed or integrate itself into other markup languages. XHTML 1.1 plus MathML 2.0 document type is an example of such XHTML Family document type.
The difference between transitional and strict is implied by their names: transitional is used for transitions from less strict environments (like HTML), so it has support for more deprecated elements and techniques. Strict no longer supports that.
 
So whats the recomended way to go forward? I have been designing websites for a while now however have only just made the big move to XHTML... I am loving it... however i am using 1.0 Transitional... strick does not validate and makes my div's fly all over the place... wounder if i start to try XHTML 1.1

------------------------
 
Strict is alot more 'strict' with what you can get way with, it is alot more defficult to have your code validate in strict as it imposes that your code be technicaly tighter.

I find that XHTML Transitional suits all of my requirements when it comes to everyday development, but thats probably me just being lazy ;-)

I spose that in a 'best practice' world then you should put in the time and go for Strict 1.1, but as someone who generaly uses XHTML for no reason other than to replace my HTML then 1.0 Transitional suites me just fine.

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top