View Full Version : Can "alternative text" be hided?
kippie
08-09-2002, 05:26 PM
Is it possible to hide the aternative text written in an <img>-tag? I would like to add some alternative text to an image on my site (so that search engines can react on that text), but I want to avoid that this text appears on the site when a visitor goes with his cursor on that image.
Is this possible at all?
Kippie
Roy Sinclair
08-09-2002, 06:11 PM
Try <img ... alt="Some text" Title=""> In NS6 the alt text isn't show as a tip in the first place while IE will show alt text as a tip unless you also have a title in which case it will use the title instead. An empty title will disable the tip entirely.
Spookster
08-09-2002, 06:13 PM
No it can't be hided. :) Search engines aren't necessarily going to grab the alt text of your images. Each search engine has different methods of extracting text from your site. You should stick with putting keywords and such in meta tags.
kippie
08-09-2002, 06:50 PM
Thanks Roy, this works perfect!
Kippie
Originally posted by Roy Sinclair
Try <img ... alt="Some text" Title=""> In NS6 the alt text isn't show as a tip in the first place while IE will show alt text as a tip unless you also have a title in which case it will use the title instead. An empty title will disable the tip entirely.
alt text is never supposed to be displayed anyway. It is an incorrect behavior found in all browsers before NS6.
mhere
08-10-2002, 04:27 PM
well!! if u want this alt text for searching,, then instead of this add his in ur head
<meta name=keywords content="sports, recreation, outdoor">
these keywords will help search-engines to search ur site..
Roy Sinclair
08-12-2002, 05:21 PM
Originally posted by jkd
alt text is never supposed to be displayed anyway. It is an incorrect behavior found in all browsers before NS6.
Alt text should be shown if you have images turned off, in fact that was the original purpose behind the property though it's since turned out to also be the right way to handle accessability.
Originally posted by Roy Sinclair
Alt text should be shown if you have images turned off, in fact that was the original purpose behind the property though it's since turned out to also be the right way to handle accessability.
That's what I meant, but forgot to mention in the context of a "tooltip." Thanks for clarifying.
vBulletin® v3.8.2, Copyright ©2000-2012, Jelsoft Enterprises Ltd.