PC Review


Reply
Thread Tools Rate Thread

DOCTYPE quandry

 
 
Charley Kyd
Guest
Posts: n/a
 
      21st Jan 2005
I've just discovered that the DOCTYPE needs to start every page of html. I
searched Google Groups and found links to several places that listed various
doctypes. But that doesn't help much.

When I copied possible versions into my home page, all but one of them
caused the size of my fonts to increase by about 20%. (I use CSS
throughout.) The one exception was this doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

However, the following doctype, which is very similar, also increased the
size of my html by 20% or so:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">

Questions:
1. Why does the doctype specification change the size of my fonts?

2. Can anyone explain a practical way to figure out which doctype
specification is necessary?

3. Because all doctypes but one increase the size of my fonts, does that
mean that I will eventualy need to choose one of those doctypes and then
scale down my fonts?

I'm using tables, CSS, and no FrontPage-specific tools, like shared borders
or themes.

Thanks.

Charley



 
Reply With Quote
 
 
 
 
David Baxter
Guest
Posts: n/a
 
      21st Jan 2005
Actually, both of your examples are incomplete. They should read:

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

Without the URL at the end, browsers will revert to "quirks" mode, which
means they will attempt to guess at an appropriate set or version of
"standards" and use that to render the page.

The version with the "transitional" is a "looser" version which will not
ignore certain so-called "deprecated" syntax. You might be surprised to
learn how many commonly used html expression are considered invalid in
the "strict" version.


"Charley Kyd" <kyd at incsight dot com> wrote in message
news:uJAdWF3$(E-Mail Removed)...
> I've just discovered that the DOCTYPE needs to start every page of

html. I
> searched Google Groups and found links to several places that listed

various
> doctypes. But that doesn't help much.
>
> When I copied possible versions into my home page, all but one of them
> caused the size of my fonts to increase by about 20%. (I use CSS
> throughout.) The one exception was this doctype:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
> However, the following doctype, which is very similar, also increased

the
> size of my html by 20% or so:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
>
> Questions:
> 1. Why does the doctype specification change the size of my fonts?
>
> 2. Can anyone explain a practical way to figure out which doctype
> specification is necessary?
>
> 3. Because all doctypes but one increase the size of my fonts, does

that
> mean that I will eventualy need to choose one of those doctypes and

then
> scale down my fonts?
>
> I'm using tables, CSS, and no FrontPage-specific tools, like shared

borders
> or themes.
>
> Thanks.
>
> Charley
>
>
>



 
Reply With Quote
 
Jens Peter Karlsen[FP MVP]
Guest
Posts: n/a
 
      21st Jan 2005
Read this:
http://www.hut.fi/~hsivonen/doctype.html

Basically it is so that modern browsers work in two modes "Quirks" and
"Standard" where the first works mostly as older browsers did while the
latter conforms more to the W3C recommendations. So when you insert a
valid doctype you need to start using valid code.

Regards Jens Peter Karlsen. Microsoft MVP - Frontpage.

> -----Original Message-----
> From: Charley Kyd [mailto:kyd at incsight dot com]
> Posted At: 21. januar 2005 05:26
> Posted To: microsoft.public.frontpage.client
> Conversation: DOCTYPE quandry
> Subject: DOCTYPE quandry
>
>
> I've just discovered that the DOCTYPE needs to start every
> page of html. I searched Google Groups and found links to
> several places that listed various doctypes. But that doesn't
> help much.
>
> When I copied possible versions into my home page, all but
> one of them caused the size of my fonts to increase by about
> 20%. (I use CSS
> throughout.) The one exception was this doctype:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
>
> However, the following doctype, which is very similar, also
> increased the size of my html by 20% or so:
> <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
>
> Questions:
> 1. Why does the doctype specification change the size of my fonts?
>
> 2. Can anyone explain a practical way to figure out which
> doctype specification is necessary?
>
> 3. Because all doctypes but one increase the size of my
> fonts, does that mean that I will eventualy need to choose
> one of those doctypes and then scale down my fonts?
>
> I'm using tables, CSS, and no FrontPage-specific tools, like
> shared borders or themes.
>
> Thanks.
>
> Charley
>
>
>


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
100% quandry Mojo Microsoft Excel Misc 7 20th Jun 2009 10:48 AM
100% quandry Mojo Microsoft Excel Programming 2 1st Jun 2009 10:34 AM
A quandry cirianz General Discussion 20 26th Jul 2007 09:30 AM
QBF quandry! Kagsy Microsoft Access 1 22nd Mar 2005 03:25 PM
Quandry?!! =?Utf-8?B?QnJhbmRvbg==?= Microsoft Access Forms 1 23rd Mar 2004 04:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 03:55 PM.