Welcome to WebmasterWorld Guest from 184.108.40.206
Forum Moderators: incrediBILL
The issue becomes how to get this to work in the alt attribute for an image, and the resultant tool tip that Netscape and Explorer display when the cursor rests on the image. "& amp;" doesn't work, and the closest I came was coding it as "&&", which worked in Explorer but not Netscape.
Like you, I also found that using <img src=benjerry.gif alt=Ben && Jerry> will NOT work in NS.
HOWEVER, inserting quotes WILL do the trick! see below...
<img src=benjerry.gif alt="Ben && Jerry">
I generally use quotes around all my attribute values because my HTML editor (Arachnophilia) enters them automatically and uses them for its tag coloring scheme.
But there's obviously more than just aesthetics going on here.
I'm afraid the "title" attribute isn't supported by the "img" tag in NS, at least not in NS4.08, which is what tedster needs--or did I misunderstand tedster.
(Tedster-- which tag are you inquiring about: <img> or <a> ?)
Still, I'm glad you mentioned it Brett. I wasn't familiar with the "title" attribute for <a> tags. Very nice indeed!
joined:June 27, 2000
Can you show the code for that?
Is it better to use a title tag than it is to use an alt tag for images? Do you use both? And if you do use bothy, which shows up? The alt tag or the title tag?
The more I examine this little backwater of page design, the crazier it gets. More complication sets in when images are turned off and the alt text itself is displayed in the image place holder. I can't find a method that gives the right text in both the tooltip AND the image placeholder -- as well as working cross browser. Such is life.
Title or Alt? Use both. Title is intended for the mouse over, while alt is intended for non-graphical agents. Alt should be an "alternative" to the graphic, while title should be "descriptive" of the graphic.
<a href="/"><img src="logo.gif" alt="link to home page" title="Ben and Jerry's ice cream addict support center"></a>