Wednesday, December 08, 2004

alt and title attributes are kind of like apples and oranges

At work for me and in web development in general there is confusion between what an alt attribute is used for and what a title attribute is used for. Here is a good article that helps to explain the difference.

456 Berea Street - The alt and title attributes

The Alt Attribute

For user agents that cannot display images, forms, or applets, this attribute specifies alternate text. The language of the alternate text is specified by the lang attribute.

Source: How to specify alternate text.

The title attribute

This attribute offers advisory information about the element for which it is set.

Source: The title attribute.


Post a Comment

<< Home