Don’t use the title attribute for essential information

The title attribute can be used to provide additional information about an HTML element, for example a link. As long as that information is not just repeating a link’s text, title text can be useful.

What you should avoid is using the title attribute for important information that is not available elsewhere. The reason is that some users will not be aware of the title text:

So by all means use the title attribute when it is appropriate, but do not use it to just repeat link text and do not use it for critical information.

This post is a Quick Tip. Background info is available in Quick Tips for web developers and web designers.

Posted on April 7, 2009 in Quick Tips, Accessibility