Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
HTML Code Clinic Do you have some HTML code you'd like to share and get suggestions from others for tweaking or improving it? This discussion is the place.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the HTML Code Clinic section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 14th, 2004, 07:05 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default Which DTD?

A question for you pros....

Which DOCTYPE should I be shooting for? The two strictest seem to be XHTML 1.1 and XHTML 1.0 Strict. Is one of them more compatable or something?

Thanks,

Snib

<><
__________________
-Snib - http://www.snibworks.com
Where will you be in 100 years?
  #2 (permalink)  
Old July 15th, 2004, 05:00 PM
Friend of Wrox
 
Join Date: Nov 2003
Location: , , .
Posts: 1,285
Thanks: 0
Thanked 2 Times in 2 Posts
Default

Expanding on this, I read online that the W3C "strongly recommends" that XHTML 1.1 is served as "application/xhtml+xml". XHTML 1.0 "may" be text/html or application/xhtml+xml. It seems XHTML 2.0 must be served as application/xhtml+xml (when it comes out). The problem with application/xhtml+xml is, I've heard, that Internet Explorer doesn't know what to do with application/xhtml+xml, and instead of displaying it, tries to download it; not a problem for me (I said goodbye (and good riddance) to IE long ago :-) ) but with all the IE users out there, I'd be seriously thinning the amount of users coming to my website.

Can anyone confirm this or add to it?

Thanks,

Snib

<><
  #3 (permalink)  
Old July 16th, 2004, 03:34 AM
Friend of Wrox
 
Join Date: Jul 2003
Location: , , United Kingdom.
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post
Default

Hi Snib,

This is correct, IE doesn't process the "application/xhtml+xml" content type (thanks Bill).

I think many people are setting the content type to "application/xhtml+xml" only if a browser explicitly specifies in HTTP_ACCEPT that it can take it and otherwise just returning "text/html".

Best regards,

Chris





Similar Threads
Thread Thread Starter Forum Replies Last Post
Automated tool to convert XML from DTD to DTD lsantos2000 XSLT 2 October 17th, 2007 08:21 AM
Create DTD Lizane Java Basics 1 June 15th, 2007 06:51 AM
DTD question bcogney XML 1 April 8th, 2007 06:01 PM
Issue with DTD tgopal CSS Cascading Style Sheets 2 September 20th, 2006 04:15 AM
Help with DTD P Keshav XML 1 September 12th, 2003 12:05 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.