Image Alt, Text Alt??
Happy New Year
I am at present redesigning a 3 year old website.
I know how to put a Alt to an image but how do I do it to my text navigation.
My site as it is at the moment has 160 pages in 8 categories all on the front page. I am changing it to just have links to the 8 Categories pages with sub cats listed on the 8 pages.
What I want to do is when someone hovers over my Navigation Links I want a alt box showing some of the sub cat titles as examples of what will be on that page.
Hope you can understand me. I have seen it on other sites.
Thanks in advance.
Last edited by amiman; 01-03-2008 at 11:52 AM.
there are 2 attributes commonly confused.
alt is for if an element cannot be loaded, and defines ALTERNATE text
title is the text appearing when said element is hovered over.
some browsers mix these up, or ignore title altogether though.
so use the title attribute
Thanks for the quick reply
would it be done like the following
<li><a href="prof.php" title="Accountants, Architects, Solicitors"> Professional</a></li>
that would be correct, yes.
Thanks for you Help scragar
There is no need to provide alt text for anything other than images as the text in your page already is text and so providing alternative text to display when the original can't display would be pointless.
To fix the Microsoft bug that copies the alt text for an image into the title attribute if a title attribute isn't supplied you should specify title="" in all your images. That way the alt text will be treated correctly by all browsers.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)