Ryan Fitton
07-09-2007, 03:45 PM
Hi, have been trying for ages to validate my page on w3c using their HTML Validator, I have been using the BETA which has HTML Tidy built into it. But I have been having no look, i have used the HTML Tidys suggested code, but it has made my logo go to the bottom of the page instead of the top and I dont know why.
Here is the generated code that HTML Tidy gives me:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 1 September 2005), see www.w3.org">
<link rel="shortcut icon" href="favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ryan Fitton - All About Me</title>
<link rel="stylesheet" type="text/css" href="css/blue.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="blue-theme" href="css/blue.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="red-theme" href="css/red.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="orange-theme" href="css/orange.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="pink-theme" href="css/pink.css">
<script src="style_switch/styleswitch.js" type="text/javascript">
/***********************************************
* Style Sheet Switcher v1.1- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script language="javascript" type="text/javascript">
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,re sizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
<link rel="stylesheet" type="text/css" href="chrometheme/chromestyle.css">
<script type="text/javascript" src="chromejs/chrome.js">
/***********************************************
* Chrome CSS Drop Down Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<style type="text/css">
div.c5 {text-align: center}
div.c4 {width: 623; height: 59}
div.c3 {width: 150px;}
div.c2 {width: 650; height: 86}
p.c1 {text-align: center}
</style>
</head>
<body>
<div class="border c5">
<div class="c5">
<table>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF" align="center">
<p class="c1"> </p>
<div class="chromestyle c2" id="chromemenu">
<ul>
<li><a href="index.htm">Home</a></li>
<li><a href="about_me.htm" rel="dropmenu1">About Me</a></li>
<li><a href="#" rel="dropmenu2">Other Stuff</a></li>
<li><a href="contact_me.htm" rel="dropmenu3">Contact Me</a></li>
</ul>
</div>
<!-- About Me Menu -->
<div id="dropmenu1" class="dropmenudiv"><a href="about_me.htm">Who Am I?</a> <a href="my_hobbies.htm">My Hobbies</a> <a href="my_favorite_stuff.htm">My Favorite Stuff</a></div>
<!-- Other Stuff Menu -->
<div id="dropmenu2" class="dropmenudiv"><a href="links.htm">Links</a> <a href="photo_gallery.htm">Photo Gallery</a> <a href="music_player.htm" onclick="NewWindow(this.href,'music_player','310','340','no','center');return false" onfocus="this.blur()">Music Player</a></div>
<!-- Contact Me Menu -->
<div id="dropmenu3" class="dropmenudiv c3"><a href="contact_me.htm">Contact Me</a> <a href="mailto:ryan.fitton@hotmail.co.uk?Subject=E-Mail%20from%20website">E-Mail</a></div>
<script type="text/javascript">
cssdropdown.startchrome("chromemenu")
</script></td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="671" height="1" bgcolor="#FFFFFF" colspan="3">
<div class="spacer"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
</tr>
<tr>
<td width="7" height="21" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="title">Home</div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="body c4">Welcome to my website, I hope you enjoy browsing it!
<p>Last updated: <!--webbot bot="Timestamp" S-Type="EDITED"
S-Format="%A, %d %B %Y" startspan -->Saturday, 07 July 2007<!--webbot bot="Timestamp" endspan i-checksum="56626" --></p>
</div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="671" height="1" bgcolor="#FFFFFF" colspan="3">
<div class="spacer"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
</tr>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="photo"><img border="0" src="images/mitsubishi_lancer_evolution_1.png" width="351" height="194" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="671" height="1" bgcolor="#FFFFFF" colspan="3"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></td>
</tr>
<tr>
<td width="671" height="1" bgcolor="#FFFFFF" colspan="3">
<div class="photo"><img border="0" src="images/line.gif" width="552" height="1" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
</tr>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="designed_by">Website designed and managed by <a href="mailto:ryan.fitton@hotmail.co.uk?Subject=E-Mail%20from%20Ryan%20Fitton%20website">Ryan Fitton</a>.</div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="copyright"><a href="mailto:ryan.fitton@hotmail.co.uk?Subject=E-Mail%20from%20Ryan%20Fitton%20website">Ryan Fitton</a> Copyright © 2007. All rights reserved.</div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="image_bottom"><a href="http://jigsaw.w3.org/css-validator/validator?uri=http://h1.ripway.com/ryanfitton/css/blue.css" target="_blank"><img border="0" src="images/vcss.gif" alt="This page is is validated CSS" width="88" height="31"></a><a href="http://www.w3.org/Style/CSS/" target="_blank"><img border="0" src="images/mwcts.png" width="88" height="31" alt="** PLEASE DESCRIBE THIS IMAGE **"></a></div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="671" height="1" bgcolor="#FFFFFF" colspan="3"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></td>
</tr>
</table>
</div>
<table cellspacing="0" cellpadding="0" width="155" border="0">
<tr>
<td width="663" height="1" colspan="3" bgcolor="#FFFFFF">
<div class="spacer"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
</tr>
<tr>
<td width="10" height="1" bgcolor="#FFFFFF"></td>
<td width="680" height="1" bgcolor="#FFFFFF">
<div class="theme">Choose a theme: <select name="switchcontrol" size="1" onchange="chooseStyle(this.options[this.selectedIndex].value, 30)">
<option value="none" selected="selected">Default style</option>
<option value="blue-theme">Blue Theme</option>
<option value="red-theme">Red Theme</option>
<option value="orange-theme">Orange Theme</option>
<option value="pink-theme">Pink Theme</option>
</select></div>
</td>
<td width="9" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="663" height="1" colspan="3" bgcolor="#FFFFFF">
<div class="logo_header"><a href="index.htm"><img border="0" src="images/logo.png" width="611" height="124" alt="** PLEASE DESCRIBE THIS IMAGE **"></a></div>
</td>
</tr>
<tr>
<td width="663" height="1" colspan="3" bgcolor="#FFFFFF">
<div class="spacer"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
</tr>
</table>
</div>
</body>
</html>
So could someone please help me with the code.
Here is the generated code that HTML Tidy gives me:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux (vers 1 September 2005), see www.w3.org">
<link rel="shortcut icon" href="favicon.ico">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Ryan Fitton - All About Me</title>
<link rel="stylesheet" type="text/css" href="css/blue.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="blue-theme" href="css/blue.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="red-theme" href="css/red.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="orange-theme" href="css/orange.css">
<link rel="alternate stylesheet" type="text/css" media="screen" title="pink-theme" href="css/pink.css">
<script src="style_switch/styleswitch.js" type="text/javascript">
/***********************************************
* Style Sheet Switcher v1.1- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script language="javascript" type="text/javascript">
var win=null;
function NewWindow(mypage,myname,w,h,scroll,pos){
if(pos=="random"){LeftPosition=(screen.width)?Math.floor(Math.random()*(screen.width-w)):100;TopPosition=(screen.height)?Math.floor(Math.random()*((screen.height-h)-75)):100;}
if(pos=="center"){LeftPosition=(screen.width)?(screen.width-w)/2:100;TopPosition=(screen.height)?(screen.height-h)/2:100;}
else if((pos!="center" && pos!="random") || pos==null){LeftPosition=0;TopPosition=20}
settings='width='+w+',height='+h+',top='+TopPosition+',left='+LeftPosition+',scrollbars='+scroll+',location=no,directories=no,status=no,menubar=no,toolbar=no,re sizable=no';
win=window.open(mypage,myname,settings);}
// -->
</script>
<link rel="stylesheet" type="text/css" href="chrometheme/chromestyle.css">
<script type="text/javascript" src="chromejs/chrome.js">
/***********************************************
* Chrome CSS Drop Down Menu- © Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for full source code
***********************************************/
</script>
<style type="text/css">
div.c5 {text-align: center}
div.c4 {width: 623; height: 59}
div.c3 {width: 150px;}
div.c2 {width: 650; height: 86}
p.c1 {text-align: center}
</style>
</head>
<body>
<div class="border c5">
<div class="c5">
<table>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF" align="center">
<p class="c1"> </p>
<div class="chromestyle c2" id="chromemenu">
<ul>
<li><a href="index.htm">Home</a></li>
<li><a href="about_me.htm" rel="dropmenu1">About Me</a></li>
<li><a href="#" rel="dropmenu2">Other Stuff</a></li>
<li><a href="contact_me.htm" rel="dropmenu3">Contact Me</a></li>
</ul>
</div>
<!-- About Me Menu -->
<div id="dropmenu1" class="dropmenudiv"><a href="about_me.htm">Who Am I?</a> <a href="my_hobbies.htm">My Hobbies</a> <a href="my_favorite_stuff.htm">My Favorite Stuff</a></div>
<!-- Other Stuff Menu -->
<div id="dropmenu2" class="dropmenudiv"><a href="links.htm">Links</a> <a href="photo_gallery.htm">Photo Gallery</a> <a href="music_player.htm" onclick="NewWindow(this.href,'music_player','310','340','no','center');return false" onfocus="this.blur()">Music Player</a></div>
<!-- Contact Me Menu -->
<div id="dropmenu3" class="dropmenudiv c3"><a href="contact_me.htm">Contact Me</a> <a href="mailto:ryan.fitton@hotmail.co.uk?Subject=E-Mail%20from%20website">E-Mail</a></div>
<script type="text/javascript">
cssdropdown.startchrome("chromemenu")
</script></td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="671" height="1" bgcolor="#FFFFFF" colspan="3">
<div class="spacer"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
</tr>
<tr>
<td width="7" height="21" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="title">Home</div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="body c4">Welcome to my website, I hope you enjoy browsing it!
<p>Last updated: <!--webbot bot="Timestamp" S-Type="EDITED"
S-Format="%A, %d %B %Y" startspan -->Saturday, 07 July 2007<!--webbot bot="Timestamp" endspan i-checksum="56626" --></p>
</div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="671" height="1" bgcolor="#FFFFFF" colspan="3">
<div class="spacer"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
</tr>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="photo"><img border="0" src="images/mitsubishi_lancer_evolution_1.png" width="351" height="194" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="671" height="1" bgcolor="#FFFFFF" colspan="3"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></td>
</tr>
<tr>
<td width="671" height="1" bgcolor="#FFFFFF" colspan="3">
<div class="photo"><img border="0" src="images/line.gif" width="552" height="1" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
</tr>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="designed_by">Website designed and managed by <a href="mailto:ryan.fitton@hotmail.co.uk?Subject=E-Mail%20from%20Ryan%20Fitton%20website">Ryan Fitton</a>.</div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="copyright"><a href="mailto:ryan.fitton@hotmail.co.uk?Subject=E-Mail%20from%20Ryan%20Fitton%20website">Ryan Fitton</a> Copyright © 2007. All rights reserved.</div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
<td width="657" height="1" bgcolor="#FFFFFF">
<div class="image_bottom"><a href="http://jigsaw.w3.org/css-validator/validator?uri=http://h1.ripway.com/ryanfitton/css/blue.css" target="_blank"><img border="0" src="images/vcss.gif" alt="This page is is validated CSS" width="88" height="31"></a><a href="http://www.w3.org/Style/CSS/" target="_blank"><img border="0" src="images/mwcts.png" width="88" height="31" alt="** PLEASE DESCRIBE THIS IMAGE **"></a></div>
</td>
<td width="7" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="671" height="1" bgcolor="#FFFFFF" colspan="3"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></td>
</tr>
</table>
</div>
<table cellspacing="0" cellpadding="0" width="155" border="0">
<tr>
<td width="663" height="1" colspan="3" bgcolor="#FFFFFF">
<div class="spacer"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
</tr>
<tr>
<td width="10" height="1" bgcolor="#FFFFFF"></td>
<td width="680" height="1" bgcolor="#FFFFFF">
<div class="theme">Choose a theme: <select name="switchcontrol" size="1" onchange="chooseStyle(this.options[this.selectedIndex].value, 30)">
<option value="none" selected="selected">Default style</option>
<option value="blue-theme">Blue Theme</option>
<option value="red-theme">Red Theme</option>
<option value="orange-theme">Orange Theme</option>
<option value="pink-theme">Pink Theme</option>
</select></div>
</td>
<td width="9" height="1" bgcolor="#FFFFFF"> </td>
</tr>
<tr>
<td width="663" height="1" colspan="3" bgcolor="#FFFFFF">
<div class="logo_header"><a href="index.htm"><img border="0" src="images/logo.png" width="611" height="124" alt="** PLEASE DESCRIBE THIS IMAGE **"></a></div>
</td>
</tr>
<tr>
<td width="663" height="1" colspan="3" bgcolor="#FFFFFF">
<div class="spacer"><img border="0" src="images/spacer.gif" width="698" height="20" alt="** PLEASE DESCRIBE THIS IMAGE **"></div>
</td>
</tr>
</table>
</div>
</body>
</html>
So could someone please help me with the code.