Html – Why does the XHTML 1.1 doctype trigger quirks mode

cross-browserdoctypedtdquirks-modexhtml-1.1

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

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