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

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 25 April 2012 12:14:18 GMT