...

View Full Version : Using proper alt attributes?



mikehende
11-18-2010, 11:46 AM
Just how do you know what to use as alt attributes? Let's take 2 examples, one image is a music logo like "JBL" and another is a pic of yourself, what alt attributes would you use for those two please?

abduraooft
11-18-2010, 12:14 PM
alt attribute is mainly for search engines and people who use the text only version of the site (by blocking images or or by using a text based browser)
Now, think about yourself on how you need to show the site for them.

phpdeveloper
11-18-2010, 01:54 PM
>> nowadays, Web browsers are available in a very wide variety of platforms with very different capacities; some cannot display images at all or only a restricted set of type of images; some can be configured to not load images. If your code has the alt attribute set in its images, most of these browsers will display the description you gave instead of the images
>> some of your visitors cannot see images, be they blind, color-blind, low-sighted; the alt attribute is of great help for those people that can rely on it to have a good idea of what's on your page
>> search engine bots belong to the two above categories: if you want your website to be indexed as well as it deserves, use the alt attribute to make sure that they won't miss important sections of your pages.

DrDOS
11-18-2010, 04:46 PM
I use alt and title both. Newer browsers us title, but alt may also be used by browsers for the seeing impaired or blind.

teedoff
11-18-2010, 04:48 PM
I use alt and title both. Newer browsers us title, but alt may also be used by browsers for the seeing impaired or blind.

As do I. IE uses the "alt" attribute as a tooltip as well, whereas ff and some others dont. Title attributes are for the tooltips in these browsers.

Chris Hick
11-18-2010, 04:50 PM
Also, the "alt" attribute is required to validate. It can be left blank, but still has to be in the img tag.:thumbsup: But as an above poster said, its great to have it there for greater purposes.

VIPStephan
11-18-2010, 06:43 PM
A long time ago I read a great article about the alt attribute. Unfortunately I can’t find it anymore. However, the basic message was that you shouldn’t fill the alt attributes just to have something in there as it can also become distracting if there is useless information in them.

For example, if you have some icons in your page they have to have the alt attribute but these don’t/shouldn’t have a value/content as it’s most likely not relevant for the visitor. If you have photos the alt attribute should state what you see on the image. For example “Portrait of John Doe” or “Dog chasing the mailman”. If you have images of text (e. g. buttons or the like) put that text into the alt attribute (e. g. “Home”, “Contact”, …).

As said: Always think of the relevance of the image. If it’s not relevant to know what an image looks like then leave the value of the alt attribute empty. The attribute itself is mandatory, however.

And by the way: Internet Explorer is wrong in displaying the value of the alt attribute as tooltip. That’s what the title attribute is there for.

jibin
11-19-2010, 02:50 AM
use background-image property for irrelevant images and img tag for relevant images. Now a days most people not use alt tag to identify images, so i used alt tag to make the page keyword rich.

VIPStephan
11-19-2010, 11:12 AM
Now a days most people not use alt tag to identify images, [Ö]

How do you know that? Are you psychic?


[Ö] so i used alt tag to make the page keyword rich.

Thatís not semantic, though. The alt attribute is for alternative image descriptions, not to stuff the website with meaningless keywords.

teedoff
11-19-2010, 02:05 PM
How do you know that? Are you psychic?



Thatís not semantic, though. The alt attribute is for alternative image descriptions, not to stuff the website with meaningless keywords.

He must be the guy that sits around and stuffs image alt tags from porno sites so that their images turn up on light bulb searches...lol



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum