W3C home > Mailing lists > Public > www-validator@w3.org > November 2009

Re: Help - 1 error that I can't get rid o!

From: David Dorward <david@dorward.me.uk>
Date: Tue, 3 Nov 2009 14:29:38 +0000
Cc: www-validator@w3.org
Message-Id: <128072B6-24DB-4BB4-8FBA-0B0F5ABE3ED7@dorward.me.uk>
To: Phil Ainley <phil@flockofpigs.co.uk>

On 3 Nov 2009, at 14:19, Phil Ainley wrote:
> I have managed to whittle the errors down to 1, but     I can't sort  
> it, can
> anyone help at all please?

>   1.   Error  Line 67, Column 50: Attribute "background" exists, but  
> can
> not be used for this element.
>                <td width="25" valign="top"
> background="images/shadowlt.gif">&nbsp;</td>

The root cause of this is that you are using tables for layout  
(instead of CSS and elements with appropriate semantics[1]).

The how to fix information does tell you how to hack around the issue:

> check that they are both allowed
> in the chosen document type, and/or use CSS instead of this attribute

 but you really should scrap your existing layout code and redo it  
using modern techniques. We're not in the 20th century any longer.

[1] Or, at least, without inappropriate semantics.

David Dorward
Received on Tuesday, 3 November 2009 14:30:20 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 1 March 2016 14:18:00 UTC