Dark Dragon
08-22-2003, 07:58 AM
I made a test page using XHTML but after using W3schools validation tool, it said it wasn't valid XHTML Transitional or HTML 4.0! Why is this a problem, you ask?
Because the code I used came from their site! I copied and pasted their code directly into my web page and simply alterd the text and its color and after I used their validation tool..it kept making a reference to the HTML tag at the very beginning of the document; that something was missing or invlid even though it is their own code!!!!....I will paste the code and I'd appreciate it if any of you could help me to see the problem because I really don't readily detect it....thanks
<!DOCTYPE html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title goes here</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body background="pics/grid2.gif">
<head>
<style>
body{font-family:arial;}
table{font-size:80%;background:black}
a{color:black;text-decoration:none;font:bold}
a:hover{color:#606060}
td.menu{background:indigo}
table.menu
{
font-size:100%;
position:absolute;
visibility:hidden;
}
</style>
<script type="text/javascript">
function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}
</script></head>
<h3><img src="pics/wlcome.gif" alt="Welcome to Mish-Mosh" width="359" height="31"></h3>
<table width="76%" align="center">
<tr bgcolor="#FF8080">
<td onmouseover="showmenu('tutorials')" onmouseout="hidemenu('tutorials')" bgcolor="#330000" width="305">
<div align="center"><a href="/default.asp"><font face="Comic Sans MS" color="#FFFFFF">Game
Tips</font></a><br />
</div>
<table class="menu" id="tutorials" width="100%">
<tr>
<td class="menu"><a href="/spyro2.xhtml" target="_self"><font color="#FFFFFF">Spyro
the Dragon: Ripto's Rage </font></a></td>
</tr>
<tr>
<td class="menu"><a href="/spyro3.xhtml" target="_self"><font color="#FFFFFF">Spyro
the Dragon: Year of the Dragon</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/spyro4.xhtml" target="_self"><font color="#FFFFFF">Spyro
the Dragon: Enter the Dragonfly</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/ratchet.xhtml" target="_self"><font color="#FFFFFF">Ratchet
and Clank</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/jak.xhtml" target="_self"><font color="#FFFFFF">Jak
and Daxter</font></a></td>
</tr>
</table>
</td>
<td onmouseover="showmenu('scripting')" onmouseout="hidemenu('scripting')" bgcolor="#330000" width="226">
<div align="center"><a href="/default.asp"><font color="#FFFFFF" face="Comic Sans MS">Artwork</font></a><br />
</div>
<table class="menu" id="scripting" width="100%">
<tr>
<td class="menu"><a href="/js/default.asp"><font color="#FFFFFF">Pencil
Pics</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/vbscript/default.asp"><font color="#FFFFFF">Photoshop
Pics</font></a></td>
</tr>
<tr>
<td class="menu"><a href="default.asp"><font color="#FFFFFF">Digital
Tablet Pics</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/ado/default.asp"><font color="#FFFFFF">ADO</font></a></td>
</tr>
</table>
</td>
<td onmouseover="showmenu('validation')" onmouseout="hidemenu('validation')" bgcolor="#330000" width="218">
<div align="center"><a href="/site/site_validate.asp"><font color="#FFFFFF" face="Comic Sans MS">Other
Stuff </font></a><br />
</div>
<table class="menu" id="validation" width="100%">
<tr>
<td class="menu"><a href="/site/site_validate.asp"><font color="#FFFFFF">Web
Tutorial 1</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/site/site_validate.asp"><font color="#FFFFFF">Web
Tutorial 2</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/site/site_validate.asp"><font color="#FFFFFF">About
Me, this site etc. </font></a></td>
</tr>
<tr>
<td class="menu"><a href="index.xhtml" target="_self">Home</a></td>
</tr>
</table>
</td>
</tr>
</table>
<p><font color="#FFFFFF" face="Comic Sans MS" size="2"><b>Mouse over these options
to see the drop down menus</b></font></p>
<p>
<p> </p>
</body>
</html>
Because the code I used came from their site! I copied and pasted their code directly into my web page and simply alterd the text and its color and after I used their validation tool..it kept making a reference to the HTML tag at the very beginning of the document; that something was missing or invlid even though it is their own code!!!!....I will paste the code and I'd appreciate it if any of you could help me to see the problem because I really don't readily detect it....thanks
<!DOCTYPE html
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Title goes here</title>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
</head>
<body background="pics/grid2.gif">
<head>
<style>
body{font-family:arial;}
table{font-size:80%;background:black}
a{color:black;text-decoration:none;font:bold}
a:hover{color:#606060}
td.menu{background:indigo}
table.menu
{
font-size:100%;
position:absolute;
visibility:hidden;
}
</style>
<script type="text/javascript">
function showmenu(elmnt)
{
document.all(elmnt).style.visibility="visible"
}
function hidemenu(elmnt)
{
document.all(elmnt).style.visibility="hidden"
}
</script></head>
<h3><img src="pics/wlcome.gif" alt="Welcome to Mish-Mosh" width="359" height="31"></h3>
<table width="76%" align="center">
<tr bgcolor="#FF8080">
<td onmouseover="showmenu('tutorials')" onmouseout="hidemenu('tutorials')" bgcolor="#330000" width="305">
<div align="center"><a href="/default.asp"><font face="Comic Sans MS" color="#FFFFFF">Game
Tips</font></a><br />
</div>
<table class="menu" id="tutorials" width="100%">
<tr>
<td class="menu"><a href="/spyro2.xhtml" target="_self"><font color="#FFFFFF">Spyro
the Dragon: Ripto's Rage </font></a></td>
</tr>
<tr>
<td class="menu"><a href="/spyro3.xhtml" target="_self"><font color="#FFFFFF">Spyro
the Dragon: Year of the Dragon</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/spyro4.xhtml" target="_self"><font color="#FFFFFF">Spyro
the Dragon: Enter the Dragonfly</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/ratchet.xhtml" target="_self"><font color="#FFFFFF">Ratchet
and Clank</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/jak.xhtml" target="_self"><font color="#FFFFFF">Jak
and Daxter</font></a></td>
</tr>
</table>
</td>
<td onmouseover="showmenu('scripting')" onmouseout="hidemenu('scripting')" bgcolor="#330000" width="226">
<div align="center"><a href="/default.asp"><font color="#FFFFFF" face="Comic Sans MS">Artwork</font></a><br />
</div>
<table class="menu" id="scripting" width="100%">
<tr>
<td class="menu"><a href="/js/default.asp"><font color="#FFFFFF">Pencil
Pics</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/vbscript/default.asp"><font color="#FFFFFF">Photoshop
Pics</font></a></td>
</tr>
<tr>
<td class="menu"><a href="default.asp"><font color="#FFFFFF">Digital
Tablet Pics</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/ado/default.asp"><font color="#FFFFFF">ADO</font></a></td>
</tr>
</table>
</td>
<td onmouseover="showmenu('validation')" onmouseout="hidemenu('validation')" bgcolor="#330000" width="218">
<div align="center"><a href="/site/site_validate.asp"><font color="#FFFFFF" face="Comic Sans MS">Other
Stuff </font></a><br />
</div>
<table class="menu" id="validation" width="100%">
<tr>
<td class="menu"><a href="/site/site_validate.asp"><font color="#FFFFFF">Web
Tutorial 1</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/site/site_validate.asp"><font color="#FFFFFF">Web
Tutorial 2</font></a></td>
</tr>
<tr>
<td class="menu"><a href="/site/site_validate.asp"><font color="#FFFFFF">About
Me, this site etc. </font></a></td>
</tr>
<tr>
<td class="menu"><a href="index.xhtml" target="_self">Home</a></td>
</tr>
</table>
</td>
</tr>
</table>
<p><font color="#FFFFFF" face="Comic Sans MS" size="2"><b>Mouse over these options
to see the drop down menus</b></font></p>
<p>
<p> </p>
</body>
</html>