IMG Alt Tag Problems

They have: 161 posts

Joined: Jan 2005

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. Sad

Does anyone know why? Please..do tell me.
TQ!

AyntRyte's picture

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's picture

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's picture

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's picture

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's picture

He has: 379 posts

Joined: Apr 2005

Busy wrote: An alt element (tag) is for displaying before the image is loaded or if the image doesn't load - nothing else

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

They have: 161 posts

Joined: Jan 2005

Ok...so I guess everything is ok then! Laughing out loud

Thanks.

timjpriebe's picture

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...

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. Sticking out tongue

Roo's picture

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's picture

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.