PDA

View Full Version : detecting the doctype switch


Icestorm
19.08.2001, 19:41
I've written a small article about the detection of the "doctype switch", very useful if you're messing with box models...

Could anybody take a look and tell me if it looks ok (the contents I mean) ?

thanks!
Ice

ehm yes... the link :) http://e-syed.net/skriptlab/articles_doctype.htm

Edited by - icestorm on 19/08/2001 5:42:18

anders
20.08.2001, 00:12
hi icestorm,

thanks for that great tutorial on doctype...i've always wondered what that line is for at the start of many pages...now i know...LOL ; )

just one question, how important is it in having on a page? i've hte habit of deleting that line when i see it on a page i'm editing since i didn't know what it was for....should i leave it or doesn't really matter?

anyway...i think ur tutorial is great! : )

anders
:: http://dzygn.com ::
anders@dhtmlcentral.com

Icestorm
20.08.2001, 05:55
Cool ok I'm not sure yet how important the whole doctype thing is, it looks like it's as important as using xhtml instead of normal html. Something that will become useful in the future.

Of course there are now 2 things that matter with doctype that are not futuristic:

1. da SWITCH... switch the strict mode on and css will finally work the way it's supposed to. Text size of the body will be inherited inside tables the way it's supposed to happen... etc.

2. validation... the W3C validator will keep complaining until you put in a dtd :)


I think Eddie knows a little more about the reasons why we should use a doctype declaration, he's the xhtml expert around here. I just try to get my scripts running crossbrowser/crossplatform, I'm not really a theorist this article is more about some experience I gained <img src=icon_smile_wink.gif border=0 align=middle>

<font face='Verdana'>
---
[url="http://e-syed.net/skriptlab/"]v2[/url:wyd7oxzs3e]
---
</font id='Verdana'>

Edited by - icestorm on 20/08/2001 16:00:08