W3C home > Mailing lists > Public > www-validator@w3.org > March 2005

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

From: Lachlan Hunt <lachlan.hunt@lachy.id.au>
Date: Tue, 15 Mar 2005 15:34:05 +1100
Message-ID: <423665BD.30207@lachy.id.au>
To: Julie Vinlove <jvinlove@mn.rr.com>
CC: www-validator@w3.org

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 

>  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:


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://GetFirefox.com/     Rediscover the Web
http://GetThunderbird.com/ Reclaim your Inbox
Received on Tuesday, 15 March 2005 04:34:14 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:17:44 UTC