[pmwiki-users] alt vs. title

Patrick R. Michaud pmichaud at pobox.com
Tue May 31 09:50:13 CDT 2005


On Fri, May 27, 2005 at 03:23:55PM +0200, malexism wrote:
> Hello,
> 
> just a little thing :
> Attach:image.gif"My Image" render alt="My Image".
> Firefox didn't display a popup with alt tag in <img src...>. It needs 
> the title="..." tag. Ie did.
> Is it possible to duplicate alt tag in title tag ?

If you want to duplicate the alt tag in title tag, use:

$ImgTagFmt="<img src='\$LinkUrl' style='border:0px;' title='\$LinkAlt' alt='\$LinkAlt' />";

> The same for href. Isn't a title in href usefull ?

If you want to allow alternate text in an href, you should be able
to use:

$UrlLinkFmt =
  "<a class='urllink' href='\$LinkUrl' rel='nofollow' title='\$LinkAlt'>\$LinkText</a>";

Pm



More information about the pmwiki-users mailing list