lynx-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Lynx-dev] (OT) Q: best way to hide ECMAscript-only things


From: David Dorward
Subject: Re: [Lynx-dev] (OT) Q: best way to hide ECMAscript-only things
Date: Thu, 24 Sep 2009 19:08:54 +0100


On 24 Sep 2009, at 17:44, Thorsten Glaser wrote:

For the MirOS Logo, simply using an empty alt attribute (alt="")
would hide it

Yes, but that's invalid XHTML

No, it isn't. It is the recommended approach for images which have no meaning in the document.

However, it sounds like the image does have meaning, but requires JS to function, so alt="" would not be suitable (since, for example, an Internet Explorer users dependent on JAWS for interacting with a document would not be able to know what the JS did.

Incidentally, the alt attribute should be an alternative to the image, not a description of it. http://www.alanflavell.org.uk/alt/alt-text.html is worth a read.

--
David Dorward
http://dorward.me.uk





reply via email to

[Prev in Thread] Current Thread [Next in Thread]