Richard Barnet <bf4rcr$2g0$1@nnrp.atgi.net> wrote in
comp.infosystems.
www.authoring.stylesheets:
[color=blue]
> "Axel Dahmen" <NoSpam@NoOneKnows.de> wrote in message
> news:bf4qsu$873$1@online.de...
>[color=green]
>> Now there's one thing I don't understand: "quirks mode" and "standard[/color]
> mode" seem to[color=green]
>> have become a technical term. I don't understand their meaning in terms
>> of[/color]
> a browser's[color=green]
>> mode. How do I set a browser to one or the other?[/color]
>
> As far as I understand it, it's an MSIE thing.[/color]
Mozilla and Opera, among others, have both modes as well.
[color=blue]
> IE6 (at least) 'switches' modes according to the DOCTYPE you use on the
> first line of your page(s).[/color]
It's rather weird in how it determines which mode to go into. If you put
anything before the doctype, it goes into Quirks mode, regardless of if
your doctype was proper or not. See
<URL:http://www.hut.fi/u/hsivonen/doctype.html> for more info.
[color=blue]
> If you don't have a DOCTYPE at all, IE goes into "quirks" mode and thus
> supports older (non-strict) HTML and buggy code. If you have a valid
> DOCTYPE (i.e., <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0
> Transitional//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">), then it goes
> into 'standards' mode, which requires compliant coding, etc.[/color]
You can have a perfectly valid doctype, even with a URL, and still have a
browser go into Quirks mode.
The biggest issue between standards and quirks mode is how IE interprets the
box model.
Regards,
Geoff
--
http://www.doctype.ca/ http://www.allmyfaqs.com/faq.pl?Geoff_Ball