A few problems with XHTML validation

This is a discussion on "A few problems with XHTML validation" within the Web Page Design section. This forum, and the thread "A few problems with XHTML validation are both part of the Design Your Website category.



Go Back   Webforumz.com > Main Forums > Design Your Website > Web Page Design

Notices


Closed Thread
 
LinkBack Thread Tools
  #1 (permalink)  
Old Apr 28th, 2004, 05:23
New Member
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
A few problems with XHTML validation

I am using dreamweaver and I have a few problems using the built in validator. I have the following errors:

1. in tag: script the following required attributes are missing: type [XHTML 1.0 transitional]
the line that generates this error is:
<script language="JavaScript">

2. The tag:"td" is not allowed within: "table" It is only allowed within: tr.
the line that generates this error is:
<table width="100%" border="0" cellpadding="5">
<td width="105px" valign="top">

3. The tag:"td" is not allowed within: "table" It is only allowed within: tr.
the line that generates this error is:
<td valign="top" style="font-family: Arial; font-size: xx-small"><table width="100%" style="background: #2F97CF; border: 1px solid black; font-family: Arial; font-size: xx-small; color: black" cellspacing="0">

If anyone could help me fix these errors that would be excellent. As a requirement for this project the page needs to validate to XHTML 1.0 Transitional.

  #2 (permalink)  
Old Apr 28th, 2004, 07:46
Most Reputable Member
Join Date: Jul 2003
Posts: 1,856
Thanks: 0
Thanked 0 Times in 0 Posts
Code: Select all
1. <script type="text/javascript">

2. missing a <tr> tag before the <td>

3. probably the same as 2
  #3 (permalink)  
Old Apr 28th, 2004, 12:20
New Member
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
when i insert <tr> in the code, the entire design gets messed up. should I post the entire code, maybe someone could help me if I did that?
  #4 (permalink)  
Old Apr 28th, 2004, 13:30
Reputable Member
Join Date: Aug 2003
Location: United Kingdom
Posts: 341
Thanks: 0
Thanked 0 Times in 0 Posts
like this
Code: Select all
<table width="100%" border="0" cellpadding="5">
<tr><td width="105px" valign="top">
  #5 (permalink)  
Old Apr 28th, 2004, 16:24
New Member
Join Date: Apr 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
here's the whole code... I cannot figure this out at all...

<!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>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<title>DVD Backupz Home</title>

<style type="text/css">
<!--
body {font-family: Arial; font-size: xx-small; color: black; background: #eeeeee;}
.hand {cursor: hand}
a:link {color: blue; text-decoration: none}
a:visited {color: blue; text-decoration: none}
a:active {color: red; text-decoration: none}
a:hover {text-decoration: underline}
.1a {color: white; text-decoration: none; font-size: 18pt; font-weight: bold}
//.style1 {cursor: hand; font-weight: bold; }
.style1 {
font-size: 18px;
font-weight: bold;
}
.style3 {font-size: xx-small}
-->
</style>

<script language="JavaScript">
<!--
function Menu(wich)
{
// silver is the background color of the mouseover of the menu
wich.style.background = 'silver';
// Blue is the color of the text of the mouseoverof the menu
wich.style.color = 'blue';
}
function MenuOut(wich)
{
wich.style.background = '';
wich.style.color = 'black';
}
function ChangePage(url)
{
window.location.href = url;
}
//-->
</script>

</head>

<body>

<table width="100%" border="0" cellpadding="5">
<td width="105px" valign="top"><table width="100px" style="background: #fafafa; border: 1px solid black; font-family: Arial; font-size: xx-small; color: black" cellspacing="0" cellpadding=5>
<tr>
<td style="font-size: 9pt; font-weight: bold; background: #2F97CF; background-repeat: repeat-y; background-attachment: scroll; color: white; border-bottom: 1px solid black; background-position: right"> Site Contents </td>
</tr>
<tr>
<td id="m10" onmouseover="Menu(m10)" onmouseout="MenuOut(m10)" onclick="ChangePage('page_template_example37.htm') " class="hand">DVD X Copy </td>
</tr>
<tr>
<td id="m20" onmouseover="Menu(m20)" onmouseout="MenuOut(m20)" onclick="ChangePage('page_template_example37.htm') " class="hand">DVD Shrink </td>
</tr>
<tr>
<td id="m30" onmouseover="Menu(m30)" onmouseout="MenuOut(m30)" onclick="ChangePage('page_template_example37.htm') " class="hand">DVD Media </td>
</tr>
<tr>
<td id="m40" onmouseover="Menu(m40)" onmouseout="MenuOut(m40)" onclick="ChangePage('page_template_example37.htm') " class="hand">Terminology</td>
</tr>
<tr>
<td id="m50" onmouseover="Menu(m50)" onmouseout="MenuOut(m50)" onclick="ChangePage('page_template_example37.htm') " class="hand">Link to Us </td>
</tr>
<tr>
<td id="m60" onmouseover="Menu(m60)" onmouseout="MenuOut(m60)" onclick="ChangePage('page_template_example37.htm') " class="hand">Contact Us </td>
</tr>
<tr>
<td id="m70" onmouseover="Menu(m70)" onmouseout="MenuOut(m70)" onclick="ChangePage('page_template_example37.htm') " class="hand">Disclaimer</td>
</tr>
<tr>
<td id="m80" onclick="ChangePage('page_template_example37.htm') " onmouseover="Menu(m80)" onmouseout="MenuOut(m80)">Home</td>
</tr>
</table></td>
<td valign="top" style="font-family: Arial; font-size: xx-small"><table width="100%" style="background: #2F97CF; border: 1px solid black; font-family: Arial; font-size: xx-small; color: black" cellspacing="0">
<tr>
<td><p class="1a" align="center">DVD Backupz </p></td>
</tr>
</table>



<table width="100%" style="background: #fafafa; border: 1px solid black; font-family: Arial; font-size: xx-small; color: black" cellspacing="0" cellpadding=5>
<tr>
<td style="font-size: 10pt; font-weight: bold; background: #2F97CF; background-repeat: repeat-y; background-attachment: scroll; color: white; border-bottom: 1px solid black; background-position: right">Disclaimer</td>
</tr>
<tr>
<td><p class="style1">Piracy and Copyright</p>


The webmaster does not support or condone piracy in any way, shape, or form. The purpose of this site is to inform people on how to make a backup of their own purchased DVD movies. It is legal for you to make a backup copy for your own personal use under fair use. It is NOT LEGAL for you to copy a rented DVD, a borrowed DVD, or any DVD you did not purchase. I must also stress that is illegal to make a DVD copy and distribute it, whether free of charge or not. By use of this site you agree that you are not illegally copying DVDs and that you will not illegally distribute decrypted DVD content in any way, shape, or form. </p>
<p class="style1">CSS Decryption</p>
<p class="style3">CSS decryption is a highly controversial topic right now, and this site does not contain any illegal software containing the DeCSS code that was ruled illegal by the United States Supreme Court. None of the programs contained on this site contain the DeCSS engine, any CSS decryption tools in the software on this site are not associated with the DeCSS engine, and are, as to my knowledge legal. It may be illegal for to decrypt a DVD in your country. Your are responsible for knowing your country's laws regarding copy protection. </p>


</p></td>
</tr>
</table></p></td>
<td width="105px" align="right" valign="top"><table width="100px" style="background: #fafafa; border: 1px solid black; font-family: Arial; font-size: xx-small; color: black" cellspacing="0" cellpadding=5>
<tr>
<td style="font-size: 9pt; font-weight: bold; background: #2F97CF; background-repeat: repeat-y; background-attachment: scroll; color: white; border-bottom: 1px solid black; background-position: right"> Links </td>
</tr>
<tr>
<td id="m90" onmouseover="Menu(m90)" onmouseout="MenuOut(m90)" onclick="ChangePage('page_template_example37.htm') " class="hand">AfterDawm.com</td>
</tr>
<tr>
<td id="m100" onmouseover="Menu(m100)" onmouseout="MenuOut(m100)" onclick="ChangePage('page_template_example37.htm') " class="hand">Doom9.net</td>
</tr>
<tr>
<td id="m110" onmouseover="Menu(m110)" onmouseout="MenuOut(m110)" onclick="ChangePage('page_template_example37.htm') " class="hand">DVDForum.com</td>
</tr>
<tr>
<td id="m120" onmouseover="Menu(m120)" onmouseout="MenuOut(m120)" onclick="ChangePage('page_template_example37.htm') " class="hand">LinkedSite.com</td>
</tr>
<tr>
<td id="m130" onmouseover="Menu(m130)" onmouseout="MenuOut(m130)" onclick="ChangePage('page_template_example37.htm') " class="hand">LinkedSite.com</td>
</tr>
<tr>
<td id="m140" onmouseover="Menu(m140)" onmouseout="MenuOut(m140)" onclick="ChangePage('page_template_example37.htm') " class="hand">LinkedSite.com</td>
</tr>
<tr>
<td id="m150" onmouseover="Menu(m150)" onmouseout="MenuOut(m150)" onclick="ChangePage('page_template_example37.htm') " class="hand">LinkedSite.com</td>
</tr>
<tr>
<td id="m160" onmouseover="Menu(m160)" onmouseout="MenuOut(m160)" onclick="ChangePage('page_template_example37.htm') " class="hand">LinkedSite.com</td>
</tr>
</table>
</tr>
<tr>
<td><table width="100px" style="background: #fafafa; border: 1px solid black; font-family: Arial; font-size: xx-small; color: black" cellspacing="0">
<tr>
<td>&copy; Ben Ganzel </td>
</tr>
</table></td>
<td><table width="100%" style="background: #fafafa; border: 1px solid black; font-family: Arial; font-size: xx-small; color: black" cellspacing="0">
<tr>
<td align="Center"></td>
</tr>
</table></td>
<td width="110px" align="right"><table width="100px" style="background: #fafafa; border: 1px solid black; font-family: Arial; font-size: xx-small; color: black" cellspacing="0">
<tr>
<td align="left"></td>
</tr>
</table></td>
</tr>
</td>
</table>
</body>
  #6 (permalink)  
Old May 3rd, 2004, 19:35
New Member
Join Date: Oct 2003
Location: United Kingdom
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
you need the type tag in the javascript tag also

Code: Select all
<script language="JavaScript" type="text/javascript">
Closed Thread

Tags
few, problems, xhtml, validation

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
XHTML W3C validation problems Tim356 Web Page Design 5 Oct 11th, 2005 22:46
W3C Xhtml Validation... Pheonix Implemented Suggestions 13 Oct 7th, 2005 12:44
XHTML Validation Help socalledlove Web Page Design 7 May 3rd, 2005 21:06
XHTML validation keeps21 Web Page Design 4 Mar 21st, 2005 08:27
XHTML validation problems Webforumz Staff Web Page Design 6 Jan 4th, 2004 15:45


All times are GMT. The time now is 02:14.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC8
© 2003-2008 Webforumz.com : All Rights Reserved

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43