W3C home > Mailing lists > Public > w3c-wai-gl@w3.org > October to December 2001

Re: title inclusion

From: Joe Clark <joeclark@contenu.nu>
Date: Wed, 5 Dec 2001 17:25:22 -0500
Message-Id: <a05100311b8344cfa7f88@[]>
To: WAI-GL <w3c-wai-gl@W3.org>
>I think that the title= attribute is quite important, but I also 
>think that there are some guidelines on how it should be used for 
>images and links.

And these are not really very good guidelines.

>I will try to outline the ways in which I use the alt and title 
>attributes. My reasons for using alt and title in this way are 
>chiefly because of the issues with screen readers and browsers 
>already discussed in previous emails to the list on this topic.

No, we need to write to spec. Faulty devices, whether they be 
Netscape 4 or some version of Jaws, must be fixed by the makers. For 
this same reason, I no longer recommend that people separate links by 
a printable character to make up for the deficiencies of old screen 
readers. I know perfectly well that not everyone can upgrade-- I ran 
entire Web sites on an old PowerMac 7100 for years. But at some point 
we have to accept that the benefits of standards-compliant handling 
outweigh all the effort expended to kludge around the bugs of 
noncompliant devices.

>For images that are not used as link element content: 1. Use alt to 
>describe the image.
>2. Use longdesc with a "d" link to provide a longer description if 
>required. 3. Generally do not use the title attribute for images.

On any given page, either all images have titles or none should. 
Consistency is important. (I give the same advice for links-- all 
have title or none do.)

In some cases, alt and title will be the same, which is not so bad. 
In other cases, titles can be different.

This, in effect, is my advice.

>For images that are used as part content for a link (e.g.. a link 
>that contains an image used as a bullet with text to describe the 

Very unusual!

And best repaired by using a stylesheet:

ul { list-style-image: url(image-URL); list-style-type: disc }

>1. Use the alt attribute to describe the image (e.g.. alt="bullet")

No, alt="*" should be the only alt text ever used for bullets. I 
suppose that title="" would be appropriate here. (Blank title is as 
valid as blank alt. Absent title is slightly less deplorable than 
absent alt.)

>  2. Use the title attribute for the link to describe the link. This 
>is often the same text as the non-graphical link element content. 
>Screen readers will then read the title, allowing the user to skip 
>over links without hearing "graphic, bullet..." all the time.

I cannot really figure out the HTML examples given. I think it has 
something to do with

<a title="LINKTITLE"><img title="IMAGETITLE"></a>

where the question becomes "Which title prevails? Inner or outer?" 
Ideally, we should have access to both, but the inner one is clearly 
the most specific and should prevail. I have a test file that I 
experimented with, and I found that generally the innermost title 
*does* prevail.

>For images that are used as the sole content for link elements: 1. 
>Generally use the alt attribute of the image to describe the 
>function of the link.

Always use an alt!

>2. Generally do not use the title attribute for the image 3. May use 
>the title attribute for the link, but generally would use the same 
>text as that used as the alt text for the image.


>However, if a picture is being used as a link, and it is desirable 
>to describe the picture to the user through the alternative text, 
>appropriate alternative text that describes the image may not also 
>describe the function of the link. In these cases, I use the title 
>attribute in the link element to describe the function of the link, 
>which then allows me to use the alt attribute in the image element 
>to actually describe the image.

This is fair.

>For me, the use of title= for links is all dependent on looking at 
>the link element content and deciding whether or not that content 
>(text or image with alt=) is descriptive of the link and appropriate 
>as a link name or link content. If it is, then the title is not 
>required, if it is not, then the title= for the link is required.

This is also fair. I would nonetheless be consistent within a page, 
and duplicate alt text into title if necessary.

>For example, if the text that is used as link element content 
>cannot, for design reasons, be descriptive of the link, then you 
>have a case where you should use the title attribute to describe the 
>link. One example of this is the "d" link that is used with longdesc.

Can we kill off D-links forever, please? Like longdesc on the frame 
element, they never made sense. Description of a whole page or a 
frame is pretty much irrelevant to blind users. Devices must directly 
support longdesc anyway; I tire of hacking around incompatibilities.

>2. When title= is used, screen readers often ignore the contents of alt=.

Such screen readers need to be bitch-slapped until they shape up.
   Joe Clark | joeclark@joeclark.org | <http://joeclark.org/access/>
   Accessibility articles, resources, and critiques
Received on Wednesday, 5 December 2001 17:26:39 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 16 January 2018 15:33:39 UTC