|
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 itYes, 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
[Prev in Thread] | Current Thread | [Next in Thread] |