You are here: Re: alt and title in <img> tag? « HTML « IT news, forums, messages
Re: alt and title in <img> tag?

Posted by Suzanne Knapp on 10/27/69 11:20

Thanks. I didn't realize that IE's display of Alt text was erroneous - I
thought that was what was supposed to happen, and was surprised when FireFox
didn't do it. At the FF site I learned that they would display Title text,
so thought that using both attributes (with the same text) would give me
what I wanted. So far so good with IE 6 and FF, haven't tried any others
yet.

"Dylan Parry" <usenet@dylanparry.com> wrote in message
news:3it45aFmk4emU1@individual.net...
> Using a pointed stick and pebbles, Suzanne Knapp scraped:
>> Is it ok to use both alt and title attributes in an <img> tag (so all
>> browsers will honor at least one of them)?
>
> Yes, it is fine. In fact you *should* be using alt attributes for all your
> images. With regards support, I don't know of any browsers that *don't*
> support the alt attribute, but I think that Netscape 4 didn't support
> title attributes.
>
> Internet Explorer will use the alt attribute as a tooltip, which is wrong,
> but will use the title attribute in preference if it is present.
>
> --
> Dylan Parry
> http://electricfreedom.org -- Where the Music Progressively Rocks

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация