Website gurus (Long, with code, beware!)
#11
Moldran,Nov 4 2004, 03:58 AM Wrote:One more note on this: If you want to trigger a specific browser mode for a certain browser (i.e. Firefox "Standards Compliance Mode"), lookup exactly how they react to different doctypes. The doctype evaluation behaves somewhat "strange".
[right][snapback]59151[/snapback][/right]
Not really. Just be sure to use the full DTD, including an URL referring to it's location to trigger standards mode in MSIE, Mozilla/Firefox and Opera, such as this one for XHTML 1.0:
Quote:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
If you omit the DTD altogether, all browsers will switch to quirksmode, whereas I believe both Opera and Firefox have a so-called "Almost-Standards" mode which can be activated by using a DTD without the URL.

Simply be sure to add a full Document Type Definition to your pages, ditch tables for anything besides presenting tabular data and all will be relatively well :)
-Leshy, Pizza Lover Extraordinaire
http://www.leshy.net
Reply


Messages In This Thread
Website gurus (Long, with code, beware!) - by Tal - 11-02-2004, 01:43 PM
Website gurus (Long, with code, beware!) - by Guest - 11-14-2004, 05:59 PM
Website gurus (Long, with code, beware!) - by Leshy - 11-16-2004, 12:29 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)