xHTML 1.0 Strict Doctype Template

February 28, 2009 | Filed Under Resources by Robert

This is just the xHTML document that I usually start off with, already included tags for title, description, keywords, favicon, and stylesheet.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-US" lang="en-US">
<head>
	<title></title>
	<meta name="description" content="" />
	<meta name="keywords" content="" />
	<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
	<link rel="Shortcut Icon" href="/favicon.ico" />
	<link href="styles/main.css" rel="stylesheet" type="text/css" />
</head>
<body>
</body>
</html>

There were a few occasions where I gave up on using the UTF-8 charset because IE6 had a ‘white screen’ bug on certain pages using a post through PHP. If you’re having these problems use ISO-8859-1, ex:

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
Bookmark and Share

Leave a Reply