Fix Your Site With the Right DOCTYPE!

As a newbie to the art of the pure CSS layout I haven’t been too critical of how well my HTML validates. BUT I’m finding out just how important each step is to the whole of the process.

So get to know your DOCTYPE, I spent nearly a day troubleshooting one page because of an incorrect DOCTYPE. In my case the CSS just wouldn’t do what I had expected and it was all due to… you guessed it an incorrect DOCTYPE.

I have since adopted this popular DOCTYPE:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//
EN”"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd”>

More recommended reading:
A List Apart: Articles: Fix Your Site With the Right DOCTYPE!

Technorati Tags: , ,