Background problem

Coding from W3schools

 

http://www.w3schools.com/html/html_tables.asp

 

<table border="1"  background="/images/bgdesert.jpg">

<td   background="/images/bgdesert.jpg">  Second</td>

 

**************************

 

http://validator.w3.org/check

 

 

My code

 

 

This page is not Valid XHTML 1.0 Transitional!

 

Below are the results of attempting to parse this document with an SGML parser. 

1.      Line 16, column 15: there is no attribute "background"

<td background="FRNTPAGES8CP.jpg" >

                        # error

 

The schools code and mine appear identical

 

 

w3schools code

 

This page is not Valid XHTML 1.0 Transitional!
Below are the results of attempting to parse this document with an SGML parser. 

1.      Line 7, column 6: end tag for "head" which is not finished

</head>

2.      Line 26, column 11: there is no attribute "background"

background="/images/bgdesert.jpg">

 

Same Error

 

*************************

 

I have used the same "DOCTYPE and <meta http-equiv=" as w3cschools uses.

 

 

I am bewildered as to why I get an error. The reason I have chosen background and not img is to nable me to superimpose text on the background.

 

If I can solve this problem ny code will be w3 xhtml compatable which is my aim..

Received on Sunday, 9 May 2004 23:25:57 UTC