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

Re: [VE][127] Error Message Feedback

From: Lachlan Hunt <lachlan.hunt@iinet.net.au>
Date: Thu, 27 Jan 2005 14:12:59 +1100
Message-ID: <41F85C3B.1000204@iinet.net.au>
To: joe@astutedata.com
CC: www-validator@w3.org

joe@astutedata.com wrote:
> I am using an image merely as a spacer on a web page, so I have not put
> an alt attribute in the tag. When I run the page through the W3C
> Validator, it is flagged as an error.

You need to use <img src="..." alt="" ... > to pass validation and to be 
nice to non-visual or text-based user agents.  Without alt="", run your 
page through the lynx viewer [1] and see what you get.

However, you should not be using spacer gifs because they are fail to 
seperate structure and content from the presentation and various other 
reasons.  Instead, you should be using CSS to specify margins and 
padding and all other layout and presentation of your document. 
Additionally you shouldn't be using tables for layout, which I'm 
assuming from your use of spacer gifs.  Tables are meant for marking up 
tabular data, even though they have been abused by many for layout purposes.

[1] http://www.delorie.com/web/lynxview.html

-- 
Lachlan Hunt
http://lachy.id.au/
http://GetFirefox.com/    Rediscover the Web
http://SpreadFirefox.com/   Igniting the Web
Received on Thursday, 27 January 2005 03:13:07 GMT

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