Possible Duplicate:
What are the different doctypes in html and what do they mean?
HTML DTDs - what's the point?
there are different types of DTD like strict, transitional and etc., which DTD is mostly used in common and why?
Possible Duplicate:
What are the different doctypes in html and what do they mean?
HTML DTDs - what's the point?
there are different types of DTD like strict, transitional and etc., which DTD is mostly used in common and why?
The most recent html5-compatible doctype you can use is simply:
<!doctype html>
This should be compatible with all modern browsers.
For HTML4 document, it doesn't really matter. I used to choose Transitional.
What is a DOCTYPE:
A Document Type Declaration, or DOCTYPE, is an instruction that associates a particular SGML or XML document (for example, a webpage) with a Document Type Definition (DTD) (for example, the formal definition of a particular version of HTML).
Why we need a DOC type:
If you do not declare a specific doctype correctly a visitors browser must "guess" (usually by applying the loosest possible doctype or a "quirks" mode doctype of its own) resulting in slower rendering.
We mostly use this DTD only...
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
Check the following link if you have any doubts