HTML: Using the alt tag

Published by

Posted on December 19, 2009

Per the w3c Standards the alt tag is used to serve as content when the element(image) cannot be rendered normally. The means the value define by the alt tag should only display if the image is not available. It was not meant to be used as a tooltip but earlier version of internet explorer ignored this specification. This standard was adopted in IE 7 and above. This has always been the case with Firefox ,and Opera. if you are looking for a tooltip to pop up then you will need to use the title tag.

13.8 How to specify alternate text
7.4.3 The title attribute