Below I write  basic xhtml 1.0 transitional template:

<!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”>

<head profile=”http://gmpg.org/xfn/11″>

<meta http-equiv=”Content-Type” content=”text/html; charset=UTF-8” />

<title>Site title</title>

<link rel=”stylesheet” href=”style.css” type=”text/css” media=”screen” />

<meta name=“description” content=“description of site” />
<meta name=“keywords” content=“ste keyword1,site keyword2″ />

</head>

<body>

Site content

</body>

</html>

If you want to validate html code, you can use this tool  http://validator.w3.org/

If you're new here, you may want to subscribe to my RSS feed. Thanks for visiting!