homepage Welcome to WebmasterWorld Guest from 54.226.21.57
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / HTML
Forum Library, Charter, Moderators: incrediBILL

HTML Forum

    
About the <!DOCTYPE>
confusing...
timaer

10+ Year Member



 
Msg#: 11091 posted 7:53 am on Sep 26, 2005 (gmt 0)

<!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

 

Alternative Future

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 11091 posted 8:00 am on Sep 26, 2005 (gmt 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

10+ Year Member



 
Msg#: 11091 posted 11:08 am on Sep 26, 2005 (gmt 0)

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?

Robin_reala

WebmasterWorld Senior Member 10+ Year Member



 
Msg#: 11091 posted 11:34 am on Sep 26, 2005 (gmt 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.

WebDon

10+ Year Member



 
Msg#: 11091 posted 5:22 pm on Sep 26, 2005 (gmt 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.

asquithea

10+ Year Member



 
Msg#: 11091 posted 5:58 pm on Sep 26, 2005 (gmt 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

10+ Year Member



 
Msg#: 11091 posted 6:45 am on Sep 27, 2005 (gmt 0)

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

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / HTML
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved