Recipe 6.14. Making Tool Tips with the Title Attribute


Problem

You want tool tips to appear on a hovered a link.

Solution

Use the title attribute within the link tag to create a tool tip like the one in Figure 6-25:

Figure 6-25. The value of the title attribute is displayed as a tool tip


<a href="http://www.google.com/" title="Search the Web">...</a>

Discussion

The tool tip can be applied to almost any element within a web page to add enhanced accessibility. Try using the tool tip technique on table cells and form input elements as well as links.

See Also

The HTML 4.1 specification for the title attribute at http://www.w3.org/TR/html4/struct/global.html#h-7.4.3.




CSS Cookbook
CSS Cookbook, 2nd Edition
ISBN: 0596527411
EAN: 2147483647
Year: 2006
Pages: 235

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net