Re: <td background="images/bg.jpg">

Julie Vinlove wrote:
> Your W3C Schools

W3Schools is not affiliated with the W3C, they are an independant 
organisation that teach W3C technologies like HTML and CSS.  Although 
their tutorials are well known to contain many errors and to teach bad 
techniques.

>  teaches this attribute, yet when I validate, it comes
> up as an error. I am confused. 

That just illustrates one of the many errors.  The background attribute 
is a proprietary attribute that is not included in any HTML 
recommendation.  It's also presentational and offers nothing that cannot 
be solved with CSS.

You could use the style attribute:

style="background-image:images/bg.jpg;"

But an external stylesheet is the recommended method as it more fully 
seperates the presentation from the structure and content which results 
in better markup.

-- 
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox

Received on Tuesday, 15 March 2005 04:34:14 UTC