Re: CORRECT implementation of IMG alt/title

>but one suggestion I have heard of is two make two
>similar attribute to the <IMG> tag. One would be the 'alt' text
>displayed when images are off, or not supported, the other would be
>for containing the tooltip text for when the images are loaded.

Ok, let's get this sorted out once and for all.

SRC is to give a picture.
ALT is to give a textual *replacement* for blind users, search engines, and
text-mode users. It should not in *any* way bring the user to the attention
of there being a picture.
TITLE is for a description of the image, which is rendered AS A TOOLTIP in
HTML4 browsers, and could include image size or other relevant information.
This attribute is actually present on most HTML4 elements.

If the picture is decoarative only then ALT="", title could include image
description and size.
If the image is just colourful text, then ALT="whatever the text is".

<P>This is an <IMG SRC="eg.png" ALT="example"> of what I mean.</P>

Are we clear now?!
--
Ian Hickson
-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GIT/M/S d- s+: a--- C++(+++)>$ U P L+ !E W++ N++ o? K? w++>+++ O- !M V- PS+
PE- Y+ PGP t 5+++>++++ X- R+++ tv b++(+++) DI D++ G e-(*)>+++++ h!()(--) y?
------END GEEK CODE BLOCK------

Received on Tuesday, 27 January 1998 04:28:00 UTC