IMG Alt Tag Problems
Hello,
I am having some problems with the simplest of HTML tags: The Image Alt tag.
You can see the problem live at my website:
Easy Sig
I put an alternate text tag in the header, but for some reason, it's not showing.
Does anyone know why? Please..do tell me.
TQ!
AyntRyte posted this at 02:59 — 9th June 2005.
He has: 145 posts
Joined: Jun 2004
It works in IE, Fx (maybe others) don't support it. Try adding:
title=Easy Signature Generator"
to the tag.
Roo posted this at 03:09 — 9th June 2005.
She has: 840 posts
Joined: Apr 1999
Yes use can use both alt="Whatever" and title="Whatever"....those are valid for the image tag.
chrishirst posted this at 05:31 — 9th June 2005.
He has: 379 posts
Joined: Apr 2005
it is alt attribute it is not a tag.
All browsers support it, IE incorrectly shows the content of the alt attribute as a "tool tip"
Busy posted this at 08:50 — 9th June 2005.
He has: 6,151 posts
Joined: May 2001
An alt element (tag) is for displaying before the image is loaded or if the image doesn't load - nothing else
chrishirst posted this at 09:46 — 9th June 2005.
He has: 379 posts
Joined: Apr 2005
Actually that's only partly correct
It is NOT an element OR a tag. It is an attribute of the tag and yes it is meant to be used for an alternative text display in user agents that do not render images.
Chris
Indifference will be the downfall of mankind, but who cares?
Venue Capacity Monitoring
Code Samples
EGS posted this at 11:06 — 9th June 2005.
They have: 161 posts
Joined: Jan 2005
Ok...so I guess everything is ok then!
Thanks.
timjpriebe posted this at 12:50 — 9th June 2005.
He has: 2,667 posts
Joined: Dec 2004
Yep, you did it right, dynamite. Just IE does it wrong.
Unfortunately, due to IE displaying the alt attribute as a tooltip, I've been asked by clients in the past to remove it. Stupid IE...
Tim
http://www.tandswebdesign.com
EGS posted this at 18:55 — 9th June 2005.
They have: 161 posts
Joined: Jan 2005
Haha yeah...but strangely enough, I've seen some alt tags perform as title tags in FireFox. Thus the reason why I even bothered asking this silly question.
Roo posted this at 20:11 — 9th June 2005.
She has: 840 posts
Joined: Apr 1999
Opera browsers will display the title as a tooltip on both images and links. It's a good idea to include the title attribute for accessability.
robfenn posted this at 08:04 — 17th June 2005.
He has: 471 posts
Joined: Jun 2005
I'm not sure about accesibility, W3C validation accepts ALT tags. The partially sighted or blind users that have a screen reader would be able to read ALT tags too.
-Rob
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.