Welcome to WebmasterWorld Guest from 54.159.50.111

Forum Moderators: incrediBILL

Message Too Old, No Replies

About the <!DOCTYPE>

confusing...

     

timaer

7:53 am on Sep 26, 2005 (gmt 0)

Inactive Member
Account Expired

 
 


<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR
/xhtml1/DTD/xhtml1-transitional.dtd">

Is it necessary for a page? After I removed it ,Nothing
special happened. Anyone tell me what is it used for

8:00 am on Sept 26, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:Feb 22, 2003
posts:1022
votes: 0


Welcome to WebMasterWorld timaer,

Here is an article that will help you understand the DOCTYPE a little more and why it is required.

[webmasterworld.com...]

HTH,

-George

[edited by: encyclo at 12:54 am (utc) on Sep. 27, 2005]
[edit reason] fixed link [/edit]

timaer

11:08 am on Sept 26, 2005 (gmt 0)

Inactive Member
Account Expired

 
 


Thanks ,George

I've read that link,but still a little confused about its use.It refered

"But if a browser sees no DTD, or a partial DTD, then it goes into "quirks mode", which essentially means rendering the page the wrong way, but the way we were used to up until version 6"

What is the "wrong way"? Can IE 6 use the "quirks mode" to render the page correctly as "standard mode",since I see no difference after removing the sentence <!DOCTYPE...>,and I heard of a saying that if we remove the<!DOCTYPE...> the download speed will be more faster,Is that right?

11:34 am on Sept 26, 2005 (gmt 0)

Senior Member

WebmasterWorld Senior Member 10+ Year Member

joined:June 26, 2004
posts:1497
votes: 0


Download speed will be very slightly faster but long run it's not worth leaving it out. It is possible for a page to look the same in both standards and quirks modes if it's simple enough to not use any style that is affected by the doctype switch.
5:22 pm on Sept 26, 2005 (gmt 0)

Junior Member

10+ Year Member

joined:Mar 3, 2003
posts:77
votes: 0


Hi Timaer,

Stick with using the DocType. It's the right way to do it and later, as you get into more complicated web work, you'll be glad you got in the habit of doing it right from the start.

5:58 pm on Sept 26, 2005 (gmt 0)

Full Member

10+ Year Member

joined:Nov 18, 2003
posts:202
votes: 0


... and better yet, if you're starting out, start with a Strict DOCTYPE, rather than a transitional one. That'll save you grief in the long run.

timaer

6:45 am on Sept 27, 2005 (gmt 0)

Inactive Member
Account Expired

 
 


Thanks all the lovely guys,I think I know what to do next.