Click to See Complete Forum and Search --> : Document type acc. w3


olaf
05-13-2004, 04:56 AM
Hallo,
According the last description on the webpage from w3 i have to use this kind of doc-type:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">

until now i used this one (because it comes up with the standard template of homsite):

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

what is different?
I have not xhtml docs in use.
If i use the upper doc-type, then my style is different...
Why do i need the dtd-file on w3.org?

Fang
05-13-2004, 05:13 AM
It tells the browser where to find information about the elements used in the page. It sets the browser in standard mode (http://gutfeldt.ch/matthias/articles/doctypeswitch/table.html).

olaf
05-13-2004, 05:26 AM
Hallo Fang,

this will mean

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">

is enough?

Fang
05-13-2004, 05:34 AM
You don't even need it, BUT it is VERY advisable to use a recomended standard mode DTD. http://gutfeldt.ch/matthias/articles/doctypeswitch/table.html
It will make your page layouts look almost identical with most modern browsers.

olaf
05-13-2004, 05:40 AM
ok, thanks... but it changes my whole layout (also in IE6):(

Fang
05-13-2004, 05:45 AM
Which means you are in standard mode.
Edit your layout to work in this mode, it will prevent a lot of problems in the future.

olaf
05-13-2004, 05:53 AM
... i know, i changed already the type of lettersize because it looked different in NN or mozilla...

olaf
05-13-2004, 06:03 AM
same basic question:

what is the menaing of "quirk"?

:confused:

Robert Wellock
05-13-2004, 06:11 AM
Quirk is the faulty/bug ridden mode but typically quirk means a peculiarity of behaviour.

Fang
05-13-2004, 06:14 AM
"quirk" and "standard" mode examples (http://hem.fyristorg.com/g-force/test/doctype.htm)

olaf
05-13-2004, 06:25 AM
Looks to me taht the standard mode is the first choice?

Fang
05-13-2004, 06:50 AM
Yes!