WeLoveCSS Logo
Home Profile Members Search Rules Help New Posts

View Poll Results: Which DOCTYPE do you use?
Strict 31 64.58%
Transistional 15 31.25%
Other 2 4.17%
Both 0 0%
Voters: 48. You may not vote on this poll



WeLoveCSS > WEB DESIGN > HTML & XHTML > Which DOCTYPE do you use?

Closed Thread
  Thread Tools Display Modes
Old 8th April 06, 05:15 PM   #1
this_melancholy
WLC Lover
 
this_melancholy's Avatar
 
Join Date: Apr 2006
Location: Stockholm, Sweden
Posts: 58
Default Which DOCTYPE do you use?

So every one, which doctype do you use when you code websites?
I am a Strict-man myself. (n_n )
this_melancholy is offline  
Old 8th April 06, 05:34 PM   #2
stealthyninja
WLC Lover
 
stealthyninja's Avatar
 
Join Date: Apr 2006
Location: Pretoria, South Africa
Posts: 71
Default Re: Which DOCTYPE do you use?

It really depends on the project for me. It doesn't help that you develop a client's site with the Strict DOCTYPE and then if they make alterations to the copy and manually enter erroneous HTML (or unencoded ampersands, for instance) the site will no longer validate. Hence I generally tend to design and develop clients' sites in Strict, but change the DOCTYPE to Transitional before it goes live. Once again though, it depends largely on the project.

For personal sites I'll always use either HTML 4.01 Strict or XHTML 1.0 Strict since it teaches me coding discipline. You can't be lazy and leave a tag unclosed or nest tags improperly, et cetera.
stealthyninja is offline  
Old 8th April 06, 05:34 PM   #3
Jen
WLC Admin
 
Jen's Avatar
 
Join Date: Mar 2006
Posts: 489
Default Re: Which DOCTYPE do you use?

I'm using Transitional.

What's two difference between transitional and strict? When I try strict and check the valid, I get many errors but for transitional I get less errors.
Jen is offline  
Old 8th April 06, 05:41 PM   #4
stealthyninja
WLC Lover
 
stealthyninja's Avatar
 
Join Date: Apr 2006
Location: Pretoria, South Africa
Posts: 71
Default Re: Which DOCTYPE do you use?

Jen: Well, the best way to learn about it if you're interested would be firstly to read a good article discussing DOCTYPES and then to create a sample (X)HTML template. As you add content and elements and make changes to this sample document, pass it through the W3 validator so you'll learn where to look for errors creeping into your mark-up as well as how element nesting should be done, et cetera. The leap from Transitional to Strict really isn't that far, so don't be scared off at first.
stealthyninja is offline  
Old 8th April 06, 05:56 PM   #5
mstwntd
WLC Member
 
Join Date: Apr 2006
Location: Melbourne, Australia
Posts: 17
Default Re: Which DOCTYPE do you use?

HTML 4.01 Strict.
mstwntd is offline  
Old 8th April 06, 07:39 PM   #6
Ricky
WLC Member
 
Join Date: Apr 2006
Posts: 35
Default Re: Which DOCTYPE do you use?

Quote:
Originally Posted by mstwntd
HTML 4.01 Strict.
Why html strict? could'nt u try xhtml trad?

Anyway i start with trad if it validates at strict i change, just looks better does'nt it yea im a cheater
Ricky is offline  
Old 8th April 06, 09:18 PM   #7
mstwntd
WLC Member
 
Join Date: Apr 2006
Location: Melbourne, Australia
Posts: 17
Default Re: Which DOCTYPE do you use?

Quote:
Originally Posted by Ricky
Why html strict? could'nt u try xhtml trad?

Anyway i start with trad if it validates at strict i change, just looks better does'nt it yea im a cheater
I'm not entirely sure what you mean by "trad" there. XHTML, in any flavour, served as text/html is no better/faster/more-effecient than HTML 4.01, as all you're using under than content type is plain ol' text/html. In fact, when it comes to HTML vs. XHTML, the DOCTYPE, unlike the content type, does not play a major role.
mstwntd is offline  
Old 8th April 06, 10:22 PM   #8
stealthyninja
WLC Lover
 
stealthyninja's Avatar
 
Join Date: Apr 2006
Location: Pretoria, South Africa
Posts: 71
Default Re: Which DOCTYPE do you use?

Quote:
Originally Posted by mstwntd
I'm not entirely sure what you mean by "trad" there.
I think he meant XHTML Transitional.

It's pretty much as mstwntd said; the HTML vs XHTML debate was a bit of a rage some time ago, with a lot of people arguing for and against how one should serve XHTML (text/html vs application/xhtml+xml, basically). I think you should just know the facts and the techniques before blindly deciding on a DOCTYPE or set method or way of doing things. I'm glad this came up, since the way you serve your document bears a relation to how your CSS will or won't be displayed from browser to browser.
stealthyninja is offline  
Old 15th April 06, 01:38 PM   #9
Vox Pelli
WLC Member
 
Vox Pelli's Avatar
 
Join Date: Apr 2006
Location: Skåne, Sweden
Posts: 48
Default Re: Which DOCTYPE do you use?

I use Xhtml 1.0 Strict because as many others has said it teaches me how to do things right. It may be a smart move by stealthyninja to change it to transitional before publishing and it's certainly something I shall consider.

I haven't followed the debate considering content type and xhtml but it looks like somehting to consider and I should perhaps take a further look at it someday.
Vox Pelli is offline  
Old 15th April 06, 02:31 PM   #10
stealthyninja
WLC Lover
 
stealthyninja's Avatar
 
Join Date: Apr 2006
Location: Pretoria, South Africa
Posts: 71
Default Re: Which DOCTYPE do you use?

With some PHP you can serve XHTML 1.1 as application/xhtml+xml to browsers that support it and text/html to those that don't.
stealthyninja is offline  
Closed Thread


Thread Tools
Display Modes
Linear Mode Linear Mode

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Center Problem with CSS sharingsunshine CSS 7 27th April 07 03:45 PM
Invalid Doctype in IE5 green_gables Browser Compatibility 4 22nd February 07 04:07 PM
Validation OK, yet page displays differently in IE and FF? StevenHu Browser Compatibility 1 21st February 07 09:57 PM


All times are GMT. The time now is 10:21 PM.



Home | Advertise | Contact Us | Top
Home | Advertise | Contact Us | Top

Copyright© 2006 WeLoveCSS.com. All Rights Reserved.
Powered by vBulletin Version 3.8.4 Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.