Document type acc. w3

admin

Administrator
Staff member
Hallo,<br />
According the last description on the webpage from w3 i have to use this kind of doc-type:<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"<br />
"http://www.w3.org/TR/html4/strict.dtd"><br />
<br />
until now i used this one (because it comes up with the standard template of homsite):<br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"><br />
<br />
what is different?<br />
I have not xhtml docs in use.<br />
If i use the upper doc-type, then my style is different...<br />
Why do i need the dtd-file on w3.org?<!--content-->It tells the browser where to find information about the elements used in the page. It sets the browser in standard mode (<!-- m --><a class="postlink" href="http://gutfeldt.ch/matthias/articles/doctypeswitch/table.html">http://gutfeldt.ch/matthias/articles/do ... table.html</a><!-- m -->).<!--content-->Hallo Fang,<br />
<br />
this will mean <br />
<br />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"><br />
<br />
is enough?<!--content-->You don't even need it, BUT it is VERY advisable to use a recomended standard mode DTD. <!-- m --><a class="postlink" href="http://gutfeldt.ch/matthias/articles/doctypeswitch/table.html">http://gutfeldt.ch/matthias/articles/do ... table.html</a><!-- m --><br />
It will make your page layouts look almost identical with most modern browsers.<!--content-->ok, thanks... but it changes my whole layout (also in IE6):(<!--content-->Which means you are in standard mode.<br />
Edit your layout to work in this mode, it will prevent a lot of problems in the future.<!--content-->... i know, i changed already the type of lettersize because it looked different in NN or mozilla...<!--content-->same basic question:<br />
<br />
what is the menaing of "quirk"?<br />
<br />
:confused:<!--content-->Quirk is the faulty/bug ridden mode but typically quirk means a peculiarity of behaviour.<!--content-->"quirk" and "standard" mode examples (<!-- m --><a class="postlink" href="http://hem.fyristorg.com/g-force/test/doctype.htm">http://hem.fyristorg.com/g-force/test/doctype.htm</a><!-- m -->)<!--content-->Looks to me taht the standard mode is the first choice?<!--content-->Yes!<!--content-->
 
Back
Top