<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.26.3">
</HEAD>
<BODY>
On Wed, 2010-04-28 at 13:41 +0200, Giorgio Maone wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
I believe the spec is trying to stigmatize old-times spacer images used 
to layout other HTML elements, like

<img src="spacer.gif" width="100" height="1">

which are overly ugly and meaningless now that there's nothing you can't 
layout by CSS.
-- G

Ingo Chao wrote, On 28/04/2010 13.31:
> <A HREF="http://dev.w3.org/html5/spec/Overview.html#the-img-element">http://dev.w3.org/html5/spec/Overview.html#the-img-element</A>
> "The img must not be used as a layout tool. In particular, img
> elements should not be used to display transparent images, as they
> rarely convey meaning and rarely add anything useful to the document."
>
> An img with a given transparent image for src cuts an area of a sprite.
> ( = img as a layout tool to describe the displayed region of a CSS
> background-image.)
>
> Is this usage of the img element considered invalid (non-conforming)?
>
> Thanks.
>
>    

</PRE>
</BLOCKQUOTE>
<BR>
But still, using a transparent image with some alt text to convey information about a background image is just as bad. It's breaking the relationship between content and the meaning of that content. A background image should be just that, and shouldn't have any impact on the meaning of information. Likewise, colour shouldn't be relied on to convey information, as there are cases where colours can't be displayed or aren't transferred if the information is grabbed as an excerpt to be used elsewhere.<BR>
<BR>
<TABLE CELLSPACING="0" CELLPADDING="0" WIDTH="100%">
<TR>
<TD>
Thanks,<BR>
Ash<BR>
<A HREF="http://www.ashleysheridan.co.uk">http://www.ashleysheridan.co.uk</A><BR>
<BR>
<BR>
</TD>
</TR>
</TABLE>
</BODY>
</HTML>