html validate problem

Associate
Joined
17 Oct 2002
Posts
312
Location
herts
hi there
the code below fails validation on w3c validator.
the bit it fails on is the background image property on the 2nd td tag on the top table.
the table below it is identical but validates fine.
anybody see a mistake that i havent spotted? or know what the problem is?

Code:
      <table width=500 align=center border=0 cellpadding=1 cellspacing=1 bgcolor=blue>
       <tr>
      	<td align=center valign=middle width=125 bgcolor=yellow>Season</td>
    	  <td align=center valign=middle bgcolor=white background="images/background/lightblue.gif">Months</td>
    	  <td align=center valign=middle width=125 bgcolor=yellow>Weekly</td>
    	 </tr>

    	</table>
<br>
      <table width=500 align=center border=0 cellpadding=1 cellspacing=1 bgcolor=blue>
       <tr>
      	<td align=center valign=middle width=125 bgcolor=yellow>Low Season</td>
    	  <td align=center valign=middle bgcolor=white background="images/background/lightblue.gif">1st January<br>-29th February</td>
    	  <td align=center valign=middle width=125 bgcolor=yellow>400<br></td>

    	 </tr>

cheers

matt

forgot to say this is in the doc

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="en">

and

<meta http-equiv="content-type" content="text/html; charset=UTF-8">
 
Last edited:
thanks aharvey

they say that but it works :p
i just cant understand why the table below it is exactly the same but it does not throw an error there :confused:

cheers

matt
 
ok thanks for the help people.

strange that as it lists other errors that i fixed all together, but for some reason it stops here until i fix that one before it will catch the next one.:confused:

anyway its temporary until i got time for a redesign i just wanted to make google happy until i do it with css/xhtml.

i have a feeling it maybe to do with my doctype declaration which is html 4.01 transitional.

thanks again

matt
 
hey ladforce

i was using <tag /> for everything that dosent have a seperate closing tag <b></b> but this generated errors due to the doctype i think.

as it is my site validates perfectly apart from the table images.

cheers

matt
 
Back
Top Bottom