Depends on the project. The vast majority of the stuff we do is
tacking on to a crufty bunch of templates built back about 5 years ago
and it's a mishmash of outdated crap. It's mostly 4.01 Transitional
and most have no doctype so we're freewheeling it until we can do a
massive rearchitecting.

And since we have people using Contribute to add content to the site,
and we're understaffed, it's hard to impose best practices on people
who don't even use styles in Word.

But my recommendation would be either 4.01 Transitional if you are
working with CMS type tools that prevent you from completely
controlling the code, or one of the XHTML if you have complete
control.

http://www.alistapart.com/articles/doctype/

--NOTE--

I have seen a difference in browser behavior even when declaring
doctypes that don't include the URL reference to the DTD.

So this:

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

behaves differently than this:

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

-Kevin



On Fri, 17 Sep 2004 11:36:20 -0400, Tyler Silcox
<[EMAIL PROTECTED]> wrote:
> Now, that we are on the CSS subject...what doctype declaration do y'all use
> for your sites?
>
> I've been using the transitional declaration and I usually comment it out
> during development, so I can view my cfdumps, etc. But that can cause some
> issues when I uncomment the tags when we go live...anyone have any best
> practices for this?
>
> Tyler
>
>    _____
>
> From: Sandy Clark [mailto:[EMAIL PROTECTED]
> Sent: Friday, September 17, 2004 10:01 AM
> To: CF-Community
> Subject: RE: IE Browser
>
> Well if you aren't using descendant, adjacent sibling or child selectors
> (which are very powerful and which IE doesn't support without IE7) and if
> you want to do CSS menus that don't require _javascript_ but do require that
> you be allowed to use the :hover psuedo element on anything but an <a href>
> tag.  Then yes, IE is fine and will probably work with other items.
>
> However, if you want to get away from using a class for everything and want
> to take advantage of Semantic markup, and you want to be able to take
> advantage of more of CSS 2 than IE will support (again IE7 does help
> immensely in that), then I stand by my prior statement.
>
> Sandy Clark
> http://www.shayna.com <http://www.shayna.com/>
> CF Pretty Accessible at http://www.shayna.com/blog
> Now offering 4 days Hands on CSS training October 11-14th. Rockville, MD.
> For more information go to:
> http://www.teratech.com/training/oc_classes.cfm#css
>
> ---
> Outgoing mail is certified Virus Free.
> Checked by AVG anti-virus system (http://www.grisoft.com).
> Version: 6.0.754 / Virus Database: 504 - Release Date: 9/6/2004
>
>
[Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Reply via email to