Html – Why does the XHTML 1.1 doctype trigger quirks mode


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" "">
<html lang="en" xml:lang="en" xmlns="">

It validated as quirks mode with this site

(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

Best Solution

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 ..

Related Question