PDA

View Full Version : Doc Type Errors



xaero2002
08-04-2003, 05:54 AM
Does anyone know how to figure out what type of DOC TYPE I should using? I have been to http://www.w3.org/ and used the HTML Validator and it is coming up with all kind of errors. I havent yet found a clear answer on what type of doc type I should be using. I upgraded to FP 2002 from 2000. My site I just put up is at http://www.wrisleysolutions.com

Thanks for any help you can give.

PS I have found alot of good info since i came to this site last night.
Keep up the good work.

no_mac_jack
08-04-2003, 11:48 AM
Hello, and welcome! I'm glad you found us.

As for choosing the right doctype, I would generally say to go with the Transitional/Loose DOCTYPE. I found a pretty good page listing the different types at A List Apart (http://www.alistapart.com/stories/doctype/), but it doesn't explain the differences.

I did find some explanation of the differences, though at htmlhelp.com (http://htmlhelp.com/tools/validator/doctype.html):

Strict
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
HTML 4.01 Strict is a trimmed down version of HTML 4.01 that emphasizes structure over presentation. Deprecated elements and attributes (including most presentational attributes), frames, and link targets are not allowed in HTML 4 Strict. By writing to HTML 4 Strict, authors can achieve accessible, structurally rich documents that easily adapt to style sheets and different browsing situations. However, since many browsers lack full support for style sheets, HTML 4 Strict documents may look bland on older visual browsers such as Netscape Navigator 3.x.

Transitional
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
HTML 4 Transitional includes all elements and attributes of HTML 4 Strict but adds presentational attributes, deprecated elements, and link targets. HTML 4 Transitional recognizes the relatively poor browser support for style sheets, allowing many HTML presentation features to be used as a transition towards HTML 4 Strict.

That's the best I could find, but it should help a little bit. Good luck!

~no_mac_jack