<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
It's an XML document type definition... basically declares that it's an XML document and a few other things. Technically it's required for valid XHTML.
Because it kicks newer versions of IE into a higher compliance mode. I not entirely sure, but its unlikely that will work for most versions (might be a newer feature as of version 9).
Remember in the other thread when I suggested you start declaring a doctype so that, among other things, IE would be less horrible at rendering things? It works at least as far back as IE 6 to get it out of "quirks" mode. For IE, it just requires any doctype.
You probably don't want XHTML 1.1 though, since it requires delivering your documents with an XML mime type, which IE6 prompts people to download as a file (gah) instead of view. XHTML 1.0 doesn't require this--you can use an HTML mime type. Consider HTML 5 as well, which also supports (but does not require) XML syntax. Regardless, make sure you make this happy: http://validator.w3.org/
Jeff250 wrote:Remember in the other thread when I suggested you start declaring a doctype so that, among other things, IE would be less horrible at rendering things?
Yes I do! And I should have taken care of this a long time ago when you told me!
Jeff250 wrote:
It works at least as far back as IE 6 to get it out of "quirks" mode. For IE, it just requires any doctype.
You probably don't want XHTML 1.1 though, since it requires delivering your documents with an XML mime type, which IE6 prompts people to download as a file (gah) instead of view. XHTML 1.0 doesn't require this--you can use an HTML mime type. Consider HTML 5 as well, which also supports (but does not require) XML syntax. Regardless, make sure you make this happy: http://validator.w3.org/
It's probably not really that bad. Start with the one on the top, since that one could be cascading "errors" all the way down. You may also need to go doctype shopping for something more lenient.
Perhaps, or HTML 5. The problem with Transitional is that you can still get less strict rendering depending on the browser (still not as bad as declaring nothing).
Ok, I tested the <!DOCTYPE HTML> doctype tag on IE6, IE7, and IE8. It works on all of them! By that I mean, all my css controlled layouts are consistent! Yeah, this by far the best alternative, simply because I have it memorized, unlike the other doctypes. Thanks Jeff!
I'll try that for sure! I've seen it, but I haven't used it.
=======================================
Question to all:
Is ajax generally not used by IE8 systems, by default? Is it also something that Internet security systems block? I was at a lab today and my comment box wouldn't work. I'll have to spend time on this later to understand why this happened for my setup, but I thought it wouldn't hurt to ask. I did a search and found that there is some incompatibility in some cases, but I always assumed that ajax is something all desktop browsers used, even IE.