page 1 of 1
Comments: 4 | Views: 400

Creating a new website today, I chose "<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">" but I have no reason why. I just picked it.

Will the DocType of for example the above change during time?

What DocType should one use today upon creating a website?

The W3C Recommends using XHTML 1.0 Strict (assuming you can keep to the spirit of a "pure" XHTML document with a CSS-based design). If you're going to use tables-for-layout and a bunch of development tactics from 1998 just stick with the HTML4.01 Loose doctype.

Don't use XHTML1.1 unless you can gurantee that the document will be served as application/xml+xhtml, but since IE doesn't support this there isn't much point to use XHTML1.1.

XHTML1.0 Transitional is literally that, a DTD for documents in-transition to the cleaner XHTML1.0 Strict. Microsoft should not have set it as the default DTD because it goes against its purpose.
Uh-huh. And you can link to the statement that Transitional shouldn't be used as the default in an editor?

Heck the W3C site doesn't make the same claim for the DTD as you do; it says

Many people writing Web pages for the general public to access might want to use this flavor of XHTML 1.0. The idea is to take advantage of XHTML features including style sheets but nonetheless to make small adjustments to your markup for the benefit of those viewing your pages with older browsers which can't understand style sheets. These include using the body element with bgcolor, text and link attributes.

My bad. I saw a notice somewhere on the W3C's site that encouraged XHTML use for all new documents, and assumed it refered to the Strict variant.
page 1 of 1
Comments: 4 | Views: 400