WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Null or empty ALT attribute?

for

From: pixeldiva
Date: Jun 10, 2005 3:36PM


On 10/06/05, Glenda < <EMAIL REMOVED> > wrote:
> Just checking current best practices:
>
> Is the preferred term "null ALT" or "'empty ALT"? And is there a space
> between the quotes [ALT="" OR ALT=" "]? I have seen it both ways and
> curious if there is a consensus yet.

They're two different things. Null is alt="". Empty is alt=" ". Both
are acceptable for decorative images because screen readers ignore
them, although null is preferable, because it won't cause an empty
"tooltip" to pop up on mouseover.

pix
http://www.pixeldiva.co.uk