PDA

View Full Version : what's the right DOC TYPE to use?


none
25.07.2002, 20:43
ok, so I want to play by the rules. how do I know which DOC TYPE to use?

is there a rule of thumb to follow?




n<img src=icon_smile_wink.gif border=0 align=middle>ne

Brian Nickel
25.07.2002, 20:48
Unless you are doing a design for an old browser, XHTML 1.1 strict is what I would go for.
If you are using some more passive code, I would go with XHTML 1.0 transitional.

Of course, if you are just goofing off and don't care, HTML4.0 is the way to go.

<font face='Courier New'><font color=brown>>++++++++[<++++++++>-]<++.>++++++[<++++++++>-]<.[>+>+<<-]>---------.--------.>----.</font id=brown></font id='Courier New'>

hzr
25.07.2002, 21:01
You can find some templates here: [url:ngzflwpgl8]http://webstandards.org/learn/templates/[/url:ngzflwpgl8]
BTW, I think you misspelled, XHTML 1.1 strict doesn't exist, right?

<font face='Courier New'><font color=red>
david håsäther
[url="mailto:hzr@dzygn.com"]hzr@dzygn.com[/url:ngzflwpgl8]|[url="http://hzr.dzygn.com/"]hzr.dzygn.com[/url:ngzflwpgl8](beta)
</font id=red></font id='Courier New'>

Sergi
25.07.2002, 21:18
it does, 1.1 is 1.0 but stricter

cu
<font color=green>
Sergi: [url="http://meddle.dzygn.com"][site][/url:vdr6jp7bes] || [url="sergi@dhtmlcentral.com"][e][/url:vdr6jp7bes]
</font id=green>

ttrenka
26.07.2002, 00:44
You can use any document type you want. Doesn't matter whether you're dealing with XHTML1.0/Strict or HTML4.0/Loose...as long as you include the right one with the coding style you are using.

That's kind of the point of using a doctype, you know ;)

hzr
26.07.2002, 06:52
<BLOCKQUOTE id=quote><font size=1 face="Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>it does, 1.1 is 1.0 but stricter<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Arial, Helvetica" size=2 id=quote>
Yes, but the name XHTML 1.1 Strict doesn't exist, because it is, and can only be, strict.

<font face='Courier New'><font color=red>
david håsäther
[url="mailto:hzr@dzygn.com"]hzr@dzygn.com[/url:q9oqoandq0]|[url="http://hzr.dzygn.com/"]hzr.dzygn.com[/url:q9oqoandq0](beta)
</font id=red></font id='Courier New'>

Edited by - hzr on 26 July 2002 12:10:19

Dan
26.07.2002, 07:51
How about XHTML Basic[/url:lmmcr63ygg] - make it compatible with WAP phones, TVs and fridges.

<font face='Courier New'><font color=maroon>»» Dan (dan@pupius.net)
»» [url]www.pupius.net (http://www.w3.org/TR/xhtml-basic/) || [url="http://www.dhtmlcentral.com/resources/redirect.asp?linkid=23"]www.endoflow.com[/url:lmmcr63ygg] || www.13thparallel.org</font id=maroon></font id='Courier New'>

Edited by - Dan on 26 July 2002 11:52:00

Brian Nickel
26.07.2002, 12:23
<BLOCKQUOTE id=quote><font size=1 face="Arial, Helvetica" id=quote>quote:<hr height=1 noshade id=quote>Yes, but the name XHTML 1.1 Strict doesn't exist, because it is, and can only be, strict.<hr height=1 noshade id=quote></BLOCKQUOTE id=quote></font id=quote><font face="Arial, Helvetica" size=2 id=quote>
Completely my fault. Sorry for the confusion.

<font face='Courier New'><font color=brown>>++++++++[<++++++++>-]<++.>++++++[<++++++++>-]<.[>+>+<<-]>---------.--------.>----.</font id=brown></font id='Courier New'>

mad hatter
26.07.2002, 14:18
As Tom said, you whatever fits your needs. If possible, I'd recommend using an XHTML doctype so you'll be "ready" for the "future" of the web. Or something like that.

- D.S.
< [url="http://www.stilleye.com"]stilleye[/url:zzsophycup] | [url="http://www.stilleye.com/scripts/marginfix"]IE Margin Fix[/url:zzsophycup] >

none
26.07.2002, 15:42
thanks gents.



n<img src=icon_smile_wink.gif border=0 align=middle>ne

Garrett Smith
27.07.2002, 17:20
There's a lot of stuff to consider when using a doctype.

For example, will your audience be viewing the page from Internet Explorer, Mozilla, Netscape 4, or their refrigerator?

How complicated are the pages? For simple layouts, it matters less, so go for XHTML 1.1 or XHTML basic to ensure maximum forward compatibility. XHTML basic doesn't support script, style, or file input elements, though.

How the page is rendered is affected by the choice of DOCTYPE in Mozilla, IE 6, and IE 5 for Mac. Furthermore, obtaining measurements is affected by this. If you want to support Netscape 4 and IE 5 for windows, you will acheive a closer result by using a transitional doctype because this will invoke "quirks mode" in IE6, moz, and IE5/mac, making them act more like win ie 5 and NS 4.

There's a little info on my main page and a link to an article on 13thparallel.


http://dhtmlkitchen.com/

Edited by - Garrett Smith on 07/27/2002 16:30:26

Dan
27.07.2002, 18:59
(but with XHTML basic you can use the <link> tag to include styles -- so it can look nice and be compatible. Just no scripting...)

<font face='Courier New'><font color=maroon>»» Dan (dan@pupius.net)
»» www.pupius.net || [url="http://www.dhtmlcentral.com/resources/redirect.asp?linkid=23"]www.endoflow.com[/url:fhz86pp52j] || www.13thparallel.org</font id=maroon></font id='Courier New'>