Re: [VE][127] Error Message Feedback

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 UTC