Hiermenus Go Forth, XXIV - DHTML Lab | 8 | WebReference

Hiermenus Go Forth, XXIV - DHTML Lab | 8


Logo

Hiermenus Go Forth, XXIV:
Version 4.1.2 - The Complete Script (Full-Window)



!DOCTYPE declaration values and their effect on the document.compatMode property in IE6:

!DOCTYPE Label !DOCTYPE Definition !DOCTYPE URL Example compatMode value
No !DOCTYPE declaration used BackCompat
HTML (no version specified) n/a n/a <!DOCTYPE HTML> BackCompat
HTML 2.0 n/a n/a <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> BackCompat
HTML 3.0 n/a n/a <!!DOCTYPE HTML PUBLIC "-//W3O//DTD W3 HTML 3.0//EN">> BackCompat
HTML 3.2 n/a n/a <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> BackCompat
HTML 4.0 Strict no <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"> CSS1Compat
HTML 4.0 Strict yes <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN"
      "http://www.w3.org/TR/REC-html40/strict.dtd">
CSS1Compat
HTML 4.0 Transitional no <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> BackCompat
HTML 4.0 Transitional yes <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"
      "http://www.w3.org/TR/REC-html40/loose.dtd">
CSS1Compat
HTML 4.0 Frameset no <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"> BackCompat
HTML 4.0 Frameset yes <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Frameset//EN"
      "http://www.w3.org/TR/REC-html40/frameset.dtd">
CSS1Compat
XHTML Strict no <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"> CSS1Compat
XHTML Strict yes <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
CSS1Compat
XHTML Transitional no <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"> CSS1Compat
XHTML Transitional yes <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
CSS1Compat
XHTML Frameset no <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"> CSS1Compat
XHTML Frameset yes <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
CSS1Compat
XML n/a yes <?xml version="1.0"?> <!DOCTYPE giraffe SYSTEM "giraffe.dtd"> CSS1Compat
Unrecognized !DOCTYPE n/a n/a <!DOCTYPE giraffe SYSTEM "giraffe.dtd"> CSS1Compat

On the next page, we look at the changes made to HM to accommodate document.compatType.


Produced by Peter Belesis and

All Rights Reserved. Legal Notices.
Created: October 30, 2001
Revised: October 30, 2001

URL: http://www.webreference.com/dhtml/column60/5.html