Basic XHTML 1.0 Transitional

General Rules for XHTML

Basic Template for an XHTML 1.0 page

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>Basic XHTML</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="copyright" content="Copyright 2007 to me" />
<meta name="description" content="A short description of the page" />
<meta name="keywords" content="keywords describing this page, most search engines
ignore this now due to abuse"/>
</head>
<body>

Actual web page goes here. There is no "neck" and don't stick your head in your body, it hurts. ;)

<div id="validator">
<a href="http://validator.w3.org/check?uri=referer">
<img src="valid-xhtml10.png" alt="W3C Button to test XHTML validation" /></a>
</div>
</body>
</html>
W3C Button to test XHTML validation