Perry Mason Posted March 4, 2010 Share Posted March 4, 2010 I rewrote the script for my site using CSS only for formatting (got rid of all the tables), and it looks good. The only problem - the alt attribute for images and navigation links is not working. Is this some innate problem and how do I get it to work again? Here's the old version: http://medeponyms.com/index.php Here's the new one: http://medeponyms.com/index1.php (Ignore the background colors, that was for the ease of positioning) Thanks in advance Link to comment https://forums.phpfreaks.com/topic/194085-alt-attribute-not-working/ Share on other sites More sharing options...
isedeasy Posted March 4, 2010 Share Posted March 4, 2010 the alt attribute will only be visible if the image fails to load. You should only use alt with an <img> tag. If you are after tooltip text on hover then you need to use "title" rather than alt. Link to comment https://forums.phpfreaks.com/topic/194085-alt-attribute-not-working/#findComment-1021340 Share on other sites More sharing options...
Perry Mason Posted March 4, 2010 Author Share Posted March 4, 2010 Thanks Link to comment https://forums.phpfreaks.com/topic/194085-alt-attribute-not-working/#findComment-1021355 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.