|
Posted by GreatArtist on 07/08/07 13:05
On Jul 8, 12:05 am, "J.O. Aho" <u...@example.net> wrote:
> GreatArtist wrote:
> > I have internet explorer 7 and firefox 2.
> > I set my web page to be XHTML 1.0 transitional.
> > I put the alt attribute in my image tags but they were only displayed
> > in firefox, not IE7.
> > So I changed all the alt attributes to title instead. That works in
> > both IE7 and Firefox.
> > But now when I use the W3C xhtml validator, it tells me I should have
> > alt for all the image tags.
> > Should I include both title and alt in each image tag?
> > Why doesn't alt work in IE7? Didn't alt work in previous versions of
> > IE?
>
> Yes, you should have both.
> As far as I can recall, the alt is meant to be displayed when the image is
> missing, while the title is shown when you hover with the mouse pointer over
> the image.
>
> Alt has worked as title in earlier versions of MSIE, there can be two reasons
> why alt don't generate a "pop-up", the most likely is that MS has a bug in the
> code (which is quite common), or they wanted to follow the standard more closely.
>
> --
>
> //Aho
Thanks for giving me a good answer, unlike Jerka and John.
Thanks for being a good person.
Navigation:
[Reply to this message]
|