W3C home > Mailing lists > Public > w3c-wai-ig@w3.org > July to September 2003

language of alt attribute Re: [w3c-wai-ig] <none>

From: Charles McCathieNevile <charles@sidar.org>
Date: Mon, 29 Sep 2003 13:32:33 -0700
Cc: w3c-wai-ig@w3.org
To: David Woolley <david@djwhome.demon.co.uk>
Message-Id: <0E231787-F2BC-11D7-8DAF-000A958826AA@sidar.org>

Which means that the alt attribute can use normal text, just like 
normal text can. If you are going to use an image, then, why not put 
normal text there, and for those who for some reason can't read that 
provide a picture (whatever you think is useful), and a label in the 
default language of the page.

For example in a Russian page linking to an english variant, you would 
have the following markup:

<link rel="alternate" hreflang="en" href="englishversion" />
...<a href="englishversion" hreflang="en" rel="alternate">English 
version of this page <img src="engelski" alt="XXX" /></a>

where XXX is the word english, written in Russian using cyrillic.



On Monday, Sep 29, 2003, at 13:16 US/Pacific, David Woolley wrote:

>> Due to the inherent lack of language support in alt text. In plain 
>> text
>> you can define language and encoding something which you can't do for
>> alt text.
> All HTML attribute values have access to the full HTML character set, 
> which
> is most of ISO 10646, loosely Unicode.  The encoding information in the
> HTTP content-type header is irrelevant to the treatment of HTML
> entities in a conforming browser.  You can specify the language on
> the img element start tag, as lang is a core attribute.
Charles McCathieNevile                          Fundación Sidar
charles@sidar.org                                http://www.sidar.org
Received on Monday, 29 September 2003 16:33:11 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 13 October 2015 16:21:25 UTC