IE8 and Alt tags for Images

M

Michael

I have several websites that were built using Front Page 2003, for example
http://www.oradour.info and all the images have 'Alt' tags set to give
additional information.

When I view the site using IE8, the Alt Tag text does not display, when I
press the Compatibility View button, the text displays correctly.

I would not have thought that there should be any compatibility issues here
and that the Alt Tag text should show normally, am I missing something?

Any advice welcomed, or even suggestions as to where to ask the question
.............. Michael
 
C

C A Upsdell

Michael said:
I have several websites that were built using Front Page 2003, for example
http://www.oradour.info and all the images have 'Alt' tags set to give
additional information.

When I view the site using IE8, the Alt Tag text does not display, when I
press the Compatibility View button, the text displays correctly.

I would not have thought that there should be any compatibility issues here
and that the Alt Tag text should show normally, am I missing something?

The ALT text should appear only if its image does not. I suspect that
you want text to appear when the cursor points to the image, and for
that you should be using the TITLE attribute, not the ALT attribute.
 
P

PA Bear [MS MVP]

IE Developer Center
http://msdn.microsoft.com/en-us/ie/default.aspx

Learn IE8
http://msdn.microsoft.com/en-us/ie/aa740473.aspx

IE Beta Public Newsgroup Support: microsoft.public.internetexplorer.beta

Via the web-interface:
http://www.microsoft.com/communitie...spx?dg=microsoft.public.internetexplorer.beta

Via your newsreader:
news://msnews.microsoft.com/microsoft.public.internetexplorer.beta

Or you could post here instead:

MSDN IE Development Forums
http://forums.microsoft.com/MSDN/default.aspx?ForumGroupID=253&SiteID=1
 
M

Michael

You learn something everyday. I had never heard of the TITLE attribute and
had no need of it with IE7, as this allowed the text to appear when the mouse
was pointed towards the image.

Thank you for the advice ............ Michael
 
C

C A Upsdell

Michael said:
You learn something everyday. I had never heard of the TITLE attribute and
had no need of it with IE7, as this allowed the text to appear when the mouse
was pointed towards the image.

The problem, as I hope you have now discovered, is that the ALT
behaviour you were used to is incorrect, and always has been: IE has
supported TITLE for a long, long time, but continued to make ALT work as
you expected, in order to maintain compatibility with extinct browsers.
 
G

gophigure

This seems sporadic. One of my websites shows the "alt" text and one does
not. Both were built using the "alt" tags. I don't understand why one works
and one doesn't.
 
C

C A Upsdell

gophigure said:
This seems sporadic. One of my websites shows the "alt" text and one does
not. Both were built using the "alt" tags. I don't understand why one works
and one doesn't.

DOCTYPES maybe? What modes are the sites rendered in? A site in quirks
mode would likely show the ALT text on hover; a site in standards mode
should not do so.
 
Joined
Mar 22, 2010
Messages
2
Reaction score
0
Quickly add title and alt attributes

I noticed that image tooltips were missing in IE8 and Firefox for all web pages I had designed. I then realised I had only specified alt attributes instead of title attributes!

Having a portfolio of hundreds of Web pages, I was faced with the time-consuming task of adding title attributes to applicable images. Thankfully I stumbled upon a Windows application called Alt&Title that did this tiresome task for me!

Instead of spending hours manually adding title attributes, Alt&Title did it for me in minutes.

Give it a go. I hope you find it as useful as I have!

Here is the web page promoting it...

http://www.flysoftware.com/products/altandtitle/overview.asp
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top