Hi, Is there any difference between using alt and title tags in img tag in seo point of view?Do we need to use both these tags? eg: <img src="abc.jpg" title="abc" alt="abc"> Thanks in advance for any help Regards Mellisa
The alt tag is important. Not only for SEO but the American association for people with disabilities wants to make it compulsory so that blind people using text to speech software can also get the full benefit of your site. Which makes it doubly important not to keyword stuff your alt tags! Try to use roughly 1 keyword per 200 square pixels.l
Alt is not a tag. It's an attribute of the IMG element. There have been some tests conducted that show it really isn't used outside of image searches; but even if they're flawed I can tell you that they won't be worth much from an SEO standpoint if the search engines obey the HTML specification as closely as I think they do. Just use the IMG alt attribute according to the specification (use it as an alternate means of identifying the image to those who can't see it) and you should be fine.
Say you have an image that shows a picture of a bowl of fruit and the image says I love fruit at the bottom. Your alt text should be "I love fruit" and your title should be "Bowl of Fruit". Just remember the alt is for alternative text and the title is the title of the image. There is always a gray area, just try to design semantically.
You got it the other way around, ClientDigger. The alt text should be bowl of fruit while the title text reads "I love fruit".
Correct as usual Dan... Alt is an accessibility attribute for the img element. (OMG Dan! You are the only other person who hates it as much as me when people call attributes and elements tags... Dammit! Tags are used to open and close an element. lol) The easy way to remember is that since alt is an accessibility attribute, screen readers are going to read the alt text to blind people. The alt attribute should describe what the image is of so that the handicapped can picture it in their mind when it is read to them... a bowl of fruit. This is likely why alt text for image links carry very little weight as a replacement for the missing link text... because it "should" describe the image, NOT necessarily the page being linked to which is what link text normally describes.
Hehe.... elements and tags are like numbers and numerals. The former is an idea or concept while the latter is a physical (or in this case digital) manifestation of the idea.
Hello Friend, Yes both are different alt we can use as images tag and this is the extra benefit for it and when title is different from alt tag.
Hi, I have noticed when i use the 'alt' attribute alone, along with <img ,the text of the image is not displayed in mozilla browser.Only when i use the 'title' attribute,the text of the image is visible. Does that mean alt tag has not value in mozilla browsers? Regards Mellisa
No Mellisa, the alt attribute is there for those who cannot see the image. If you want a tool tip to appear, you have to use the title attribute. Just so you know, the use of the alt attribute as a tool tip is actually a bug in Internet Explorer (one that I believe was finally fixed in IE8). And yes, Gecko based browsers (Firefox, Seamonkey, DocZilla, Flock, Galeon, et al) do use the alt attribute. To see it in action, simply turn off images in your browser.