[html4all.org] alt on IMG on the wiki
Robert Burns
rob at robburns.com
Sat Aug 25 04:33:33 PDT 2007
Hi Josh,
I turns out, the wiki mystery of how they displayed a tooltip with
only alt was rather easily solved. I hadn't looked at the parent
element. WikiMedia wraps every image in an anchor so what WikiMedia
calls alt text in their syntax is actually repeated as many as three
times: once f for alt attribute on the image itself, a second time
for the title attribute of the enclosing anchor, and a third time
for the caption (optional). So the problem is not that we won't have
alt text will just have it repeated several times.
Take care,
Rob
On Aug 24, 2007, at 4:52 PM, Joshue O Connor wrote:
>> How do they make
>> the alt text show up as a tooltip in Safari and other browsers (it
>> looks like it's coming from title)
>
> AFAIK yes it is the title attribute that gets displayed as a
> tooltip. I
> wouldn't worry about the tooptip rendering too much and just use
> alt and
> title attributes according to spec (if only they could here me
> now) :-)
>
> Josh
>
>
>
>
> _______________________________________________
> list_html4all.org mailing list
> https://www.html4all.org/wiki
More information about the List_HTML4all.org
mailing list