Forum Moderators: open

Message Too Old, No Replies

DOCTYPE? i'm really confused

         

dj_gie

5:04 pm on Mar 20, 2006 (gmt 0)

10+ Year Member



DOCTYPE? What one shall i use? i've looked at various pages on google about them, but i'm still unsure which one to use.

Basically i want my site to work well in all browsers.

I use html mostly but also use asp for contact forms etc and also use some cgi scripts.

Can someone please help. I can post a link to my site if it helps

Kind Regards

Tastatura

5:08 pm on Mar 20, 2006 (gmt 0)

10+ Year Member



this might help you
[w3.org ]

tedster

5:43 pm on Mar 20, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Wecome to the forums, dj_gie.

We don't permit personal links or site reviews here (see the Forum Charter [webmasterworld.com]) but even if we did, that probably wouldn't answer your question very well.

Most likely your mark-up will be closest to transitional html 4.01 -- if you were avoiding deprecated attributes (required by the strict doctypes) or if you were writing xhtml, then you would already know that.

So I'd suggest that you use a the transitional html 4.01 doctype --- at least to begin. And use the "full" doctype including the W3C url at the end. This will make sure that modern browsers render your pages in standards mode rather than quirks mode. This is an excellent first step toward good cross-browser rendering.

To get you started on the right foot, you might read this thread: Quirks Mode vs. Standards Mode [webmasterworld.com]. If you have been developing pages with no doctype, then browsers are showing the page in quirks mode, and by switching to standards mode some things may break and you'll need to learn why.

If you need to stay temporarily in quirks mode with your live pages, then use the partial doctype (without the W3C url portion) but continue to develop a standards mode version of your page. Depending on what you are trying to achieve on screen, quirks mode can make cross-browser consistency an impossible goal.

dj_gie

8:44 am on Mar 21, 2006 (gmt 0)

10+ Year Member



Many thanks for your help