old9 wrote:
> html(no DTD):

...vs.

> <!doctype html public "-//W3C//DTD XHTML 1.0 Transitional//EN" " 
> http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

Source-code and CSS are interpreted differently, and it's either in
accordance with standards or in accordance with "something else".

No DTD = no standard - browsers renders/act as their creators found
best. That's all they had back around 1995, and the results of the
browser-wars still shows. We often call it 'quirks mode'.

Transitional DTD = almost standard - browsers renders/act close to W3C
standards. Not really a standard at all, but usually close enough for
comfort. Not all browsers have this 'almost standard' mode, and will
then usually interpret 'Transitional' as 'Strict'.

Strict DTD = browsers are supposed to render/act as close to any written
part of the relevant W3C standards as they possibly can. Few do, but
they are getting closer.
---

Have a Google for the rest - search for 'quirks mode', 'standard
compliant mode', 'strict mode' and so on. Plenty of nonsense around, but
some good and informative stuff too.
---

Recommendation:
Once you've read all about the subject; go read up on HTML4.01 Strict,
and stick to it.
If you know how to code for xml-compliant browsers - and only then - you
may code in accordance with XHTML1.0 Strict.
It's all found on the W3C site <http://www.w3.org/>.

regards
        Georg
-- 
http://www.gunlaug.no
______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to