Reply to Re: How to keep space between rows of graphics?

Your name:

Reply:


Posted by Mark Parnell on 05/26/05 09:35

Previously in alt.html, Cogito <nospam@nospam.nospam> said:

> Ok, I tried the alt= attribute and found that it does exactly what I
> have asked in a previous question. Yesterday I asked how could I get a
> small text window show up when hovering over a graphic? The answer I
> received was to use title="text".

And that answer is correct.

> It seems that when I have both, the alt= takes precedence.

In what browser? None that I know of. If only alt is present, IE will
mistakenly show it as a tooltip, but if both alt and title are present,
it will use the title as the tooltip instead. Other browsers will
(correctly) only show the title as a tooltip.

> So which one shell I use?

Use them both, as appropriate. The alt attribute provides a textual
*replacement* for the image, for instances where the image is not/cannot
be displayed. It is mandatory. The title attribute gives additional
information, often displayed as a tooltip. It is optional. The title
attribute can also be used on numerous other elements, not just img.

--
Mark Parnell
http://www.clarkecomputers.com.au
alt.html FAQ :: http://html-faq.com/

[Back to original 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

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