Take the 2-minute tour ×

I'm not using the XML declaration <?xml version="1.0" encoding="UTF-8" ?>

I'm only using this DTD as a first thing in a page? which has no problem rendering in strict mode.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html lang="en" xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">

It validated as quirks mode with this site http://vesa.piittinen.name/doctype/

(I can't give the link to the site on which I'm working)

In IE 6 it shows almost standards mode, and in FF it shows full standards mode.

Should I change my doctype to get the same rendering in all browser?

I'm having a rendering problem in a site

share|improve this question
Well if IE6 is an issue for you the moral of the store here is actually don't use XHTML. Use HTML 4. –  cletus Jan 26 '10 at 13:37
IE6 doesn't have an Almost Standards Mode, as far as it's concerned. –  David Kolar Jan 26 '10 at 13:42
@David Kolar - then how render IE6 with w3c box model to get consistency in all browser –  Jitendra Vyas Jan 26 '10 at 13:46
That isn't actually a problem (see my answer below), but writing HTML compatible XHTML is usually not worth the effort, and the state of various standards means that the compliance of serving 1.1 as text/html is dubious, so I would stick with HTML 4.01 Strict anyway. –  Quentin Jan 26 '10 at 13:46
see David Doward's answer. –  David Kolar Jan 26 '10 at 14:16
add comment

3 Answers

Your doctype is fine..

The problem lies with a specific bug (IE6 double margin on floated elements) you are dealing in your other post.. See there for an answer to the problem ..

share|improve this answer
add comment

Based on the documentation on that site:

Internet Explorer 7 and 6 don't have a real non-quirks mode, it is similar to the limited quirks mode of the other browsers. IE 5.5 and before only have a quirks mode.

It is because the author is letting his dislike of Internet Explorer stop him from using the accepted terminology for the rendering modes of that browser. IE6 Standards/Strict Mode isn't "good enough" so he calls it "Limited Quirks Mode"

share|improve this answer
add comment

Check here:

http://www.quirksmode.org/css/quirksmode.html1 - this is the right link.

Check the Compatibility Master Table. Do you HAVE to make it work for IE6? I would suggest trying to convince the client that IE6 is not a browser to use.

Aside from that, use 4.01 Strict and make sure you validate you pages.

share|improve this answer
That table says nothing about how to trigger quirks / standards modes. –  Quentin Jan 26 '10 at 15:59
add comment

Your Answer


