Alex Rivera | Logout

Which DOCTYPE declaration should we use?

Asked 2010-10-22T18:53:56.977
10

I have read a number of books on DOCTYPE declaration and the three variations: strict, transitional and frameset.

But I am still not able to fully understand their difference and indeed am not sure which variation I should use when creating my website. In particular I don't understand the difference between strict and transitional.

could you please advise me?

Edit
Report

1 Answer

2

Use the HTML5 DOCTYPE:

<!DOCTYPE HTML>

Everything else is old and busted.

HTML5 > XHTML > HTML 4

Note: The DOCTYPE is only useful for validating your document and for triggering the most standards compliant mode in modern browsers. Other than that, it's worthless. So you might as well use the most modern version (HTML5).

answered 2010-10-22T20:26:44.363

Your Answer