so far i was doing it like this:
<a href="http://domain.com" title="Keyword"><img src="image.png" alt="Keyword" /></a>
Now, i discovered that images can have title attribute too:
<a href="http://domain.com" title="Keyword"><img src="image.png" alt="Keyword" title="Keyword"/></a>
Is there any other optimization i could pull off to boost image links value?
Think of the
altattribute as an alternative text replacement for the image. Imagine for a moment that you had to describe the image to someone who could not see it. That is the sort of information you should be conveying in thealtattribute.Similar to the
altattribute,titleis used for the same purpose. It helps to convey extra information about an element. You can apply thetitleattribute to most elements but you must give all your images analtattribute.In my opinion, having both an
altand atitleon an image is redundant, especially if they are conveying the same information.