I am just curious about the doctype use in Google, Yahoo and Stackoverflow.
And I find that the above 3 sites use HTML4.01 doctype:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd" >
Many people say that we should use XHTML1.0 doctype but the above 3 sites do not do so. Do you know why?
I would also like to know which doctype you’ll use when writing webpages.
I use the HTML5 doctype:
Because XHTML does not work on the web and doctype is essentially only good to trigger the standards layout mode, which the above construct does very well in every browser.