Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Web Programming > HTML > HTML Code Clinic
Password Reminder
Register
| FAQ | Members List | Calendar | 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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #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?
Reply With Quote
  #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

<><
Reply With Quote
  #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



Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 09:18 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.