But I don't understand, what isn't correct there. What in particular should I fix?
Below is my old template.php file from YaBB SE forum.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html><head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1251" />
<meta content="<yabb title>" name="description" />
<meta content="PHP, MySQL, bulletin, board, free, open, source, yabb, yet, another, SE" name="keywords" />
<meta content="mshtml 6.00.2600.0" name="generator" />
<title><yabb title></title>
<style type="text/css">
<!--
/* General layout */
A:link { text-decoration: none; color: Gray; }
A:visited { text-decoration: none; color: #3399cc; }
A:hover { text-decoration: none; color: #0099ff; }
body {scrollbar-face-color: White;
scrollbar-track-color:White;
scrollbar-highlight-color: #AFC6DB; ;
scrollbar-shadow-color: #AFC6DB; ;
scrollbar-3dlight-color: White;
scrollbar-darkshadow-color: White;
scrollbar-arrow-color: #AFC6DB;
background-color:White;}
text { font-family: verdana, arial, helvetica, serif; font-size: 11px; }
TD { font-family: verdana, arial, helvetica, serif; color: #000000; font-size: 11px; }
input { background-color: #DEE7EF; font-family: verdana, arial, helvetica, serif; font-size: 9px; color: #000000; }
textarea { background-color: #DEE7EF; font-family: verdana, arial, helvetica, serif; font-size: 9px; color: #000000; }
select { background-color: #AFC6DB; font-family: verdana, arial, helvetica, serif; font-size: 9px; color: #000000; }
.copyright { font-family: verdana, arial, helvetica, serif; font-size: 10px; }
/* YaBB navigation links */
.nav { font-size: 13px; font-family: verdana, arial, helvetica, serif; text-decoration: none; color: #6394BD; }
.nav:link { font-size: 13px; font-family: verdana, arial, helvetica, serif; text-decoration: none; color: #6394BD; }
.nav:visited { font-size: 13px; font-family: verdana, arial, helvetica, serif; text-decoration: none; color: #6394BD; }
.nav:hover { font-size: 13px; font-family: verdana, arial, helvetica, serif; text-decoration: none; color: #6394BD; text-decoration: underline; }
/* YaBB alternating bgcolors */
.windowbg { background-color: #AFC6DB; font-size: 12px; font-family: verdana, arial, helvetica, serif; color: #000000; }
.windowbg2 { background-color: #F8F8F8; font-size: 12px; font-family: verdana, arial, helvetica, serif; color: #000000; }
.windowbg3 { background-color: #6394BD; font-size: 12px; font-family: verdana, arial, helvetica, serif; color: #000000; }
/* Misc./title/category colors */
.hr { color: #6394BD; font-family: verdana, arial, helvetica, serif; }
.titlebg { background-color: #6E94B7; font-family: verdana, arial, helvetica, serif; color: #FFFFFF; }
.text1 { font-style: normal; font-family: verdana, arial, helvetica, serif; font-weight: bold; font-size: 12px; color: #FFFFFF; }
.catbg { background-color: #DEE7EF; color: #000000; font-family: verdana, arial, helvetica, serif; font-weight: bold; font-size: 13px; }
.bordercolor { background-color: #6394BD; font-family: verdana, arial, helvetica, serif; }
/* Image fonts */
.imgbg { font-style: normal; font-family: verdana, arial, helvetica, serif; font-size: 10px; color: #005177; }
.imgcatbg { font-style: normal; font-family: verdana, arial, helvetica, serif; font-size: 10px; color: #005177; font-weight: bold; }
.imgtitlebg { font-style: normal; font-family: verdana, arial, helvetica, serif; font-size: 10px; color: #FFFFFF; font-weight: bold; }
.imgwindowbg { font-style: normal; font-family: verdana, arial, helvetica, serif; font-size: 9px; color: #005177; }
.imgmenu { font-style: normal; font-family: verdana, arial, helvetica, serif; font-size: 11px; color: #D4AD00; font-weight: bold; letter-spacing: 0.1em; }
/* Post quote/code colors */
.quote { font-size: 10px; font-family: verdana, arial, helvetica, serif; color: #000000; background-color: #DEE7EF; }
.code { font-size: 10px; font-family: verdana, arial, helvetica, serif; color: #000000; background-color: #CCCCCC; }
-->
</style>
</head><body text="#000000" link="#0033ff" bgcolor="#f5f5f5">
<!--begin of Rambler's Top100 code -->
<a href="http://top100.rambler.ru/top100/">
<img src="http://counter.rambler.ru/top100.cnt?402554" alt="" width=1 height=1 border=0></a>
<!--end of Top100 code-->
<table class="bordercolor" cellspacing="0" cellpadding="0" width="90%" align="center" bgcolor="#6394bd" border="0">
<tr>
<td>
<table class="bordercolor" cellspacing="1" cellpadding="0" width="100%" align="center" bgcolor="#6394bd" border="0">
<tr>
<td>
<table width="100%" border="0" cellspacing="0" cellpadding="0" bgcolor="#37527f">
<tr>
<td valign="middle" bgcolor="#37527f"><font size="2"><yabb uname><yabb im><br /><yabb time></font></td>
<td align="RIGHT" valign="MIDDLE"><a href="http://www.eglador.info"><img src="http://eglador.info/logo2.gif" alt="www.eglador.Info" border="0"></a>
</td>
</tr>
</table>
</td>
</tr><tr valign="middle" align="center" bgcolor="#b7bbda">
<td bgcolor="#afc6db" class="windowbg2"><font size="1"><yabb menu></font></td>
</tr>
<tr>
<td width="100%" bgcolor="#ffffff" height="24" class="windowbg2"> <yabb news></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<table class="bordercolor" cellspacing="1" cellpadding="0" width="90%" align="center" bgcolor="#6394bd" border="0">
<tr>
<td>
<table cellspacing="0" cellpadding="10" width="100%" align="center" bgcolor="#ffffff" border="0">
<tr>
<td valign="top" width="100%">
<p align="center"><a href="http://www.sjgames.com/munchkin" target="_blank"><img src="http://www.sjgames.com/wallpaper/img/munchkin.gif" border="0"></a></p>
</td></tr></table></td></tr></table>
<br>
<table class="bordercolor" cellspacing="0" cellpadding="0" width="90%" align="center" bgcolor="#6394bd" border="0">
<tr>
<td>
<table class="bordercolor" cellspacing="1" cellpadding="0" width="100%" align="center" bgcolor="#6394bd" border="0">
<tr>
<td>
<table cellspacing="0" cellpadding="10" width="100%" align="center" bgcolor="#ffffff" border="0">
<tr>
<td valign="top" width="100%">
<yabb main>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
<table cellspacing="0" cellpadding="0" width="90%" align="center" border="0">
<tr>
<td nowrap="nowrap" align="right"><yabb VBStyleLogin></td>
</tr>
</table>
<br>
<table class="bordercolor" cellspacing="0" cellpadding="0" width="90%" align="center" bgcolor="#6394bd" border="0">
<tr>
<td>
<table class="bordercolor" cellspacing="1" cellpadding="0" width="100%" align="center" bgcolor="#6394bd" border="0">
<tr>
<td>
<table cellspacing="0" cellpadding="3" width="100%" bgcolor="#ffffff" border="0">
<tr>
<td valign="middle" align="right" width="25%" bgcolor="#ffffff">
<a href="http://www.mysql.com/"><img height="31" alt="Powered by MySQL" src="YaBBImages/mysql.gif" width="88" border="0" /></a>
<a href="http://www.php.net/"><img height="31" alt="Powered by PHP" src="YaBBImages/php.gif" width="88" border="0" /></a>
</td>
<td valign="middle" align="center" width="50%" bgcolor="#ffffff"><yabb copyright></td>
<td valign="middle" align="left" width="25%" bgcolor="#ffffff">
<a href="http://validator.w3.org/check/referer"><img height="31" alt="Valid XHTML 1.0!" src="YaBBImages/valid-xhtml10.gif" width="88" border="0" /></a>
<a href="http://jigsaw.w3.org/css-validator/check/referer"><img height="31" alt="Valid CSS!" src="YaBBImages/vcss.gif" width="88" border="0" /></a>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>