This is the code for a template i am making
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>
youth
</title>
</head>
<body background="JPG/backgroundforwebpage.jpg">
<table width="876" border="1">
<tr><td width="126" background="JPG/leftbar.jpg">
<script type='text/javascript' src='menu_var.js'></script>
<script type='text/javascript' src='menu_com.js'></script>
<noscript>Your browser does not appear to support JavaScript!</noscript>
</td>
<td width="750" background="JPG/main.jpg">
<table border="1" width="100%" height="100%">
<tr>
<td width="560" valign="top">hi</td>
<td width="190" valign="top">hi</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
When i remove the doctype and change it to something other than XHTML the menu apears why is this? I already know about the height thing and background elements but i need to do this for the way i want the page to look.
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<title>
youth
</title>
</head>
<body background="JPG/backgroundforwebpage.jpg">
<table width="876" border="1">
<tr><td width="126" background="JPG/leftbar.jpg">
<script type='text/javascript' src='menu_var.js'></script>
<script type='text/javascript' src='menu_com.js'></script>
<noscript>Your browser does not appear to support JavaScript!</noscript>
</td>
<td width="750" background="JPG/main.jpg">
<table border="1" width="100%" height="100%">
<tr>
<td width="560" valign="top">hi</td>
<td width="190" valign="top">hi</td>
</tr>
</table>
</td>
</tr>
</table>
</body>
</html>
When i remove the doctype and change it to something other than XHTML the menu apears why is this? I already know about the height thing and background elements but i need to do this for the way i want the page to look.