Setting link title

To help users navigate a website, you can add the optional title attribute to the link tag: <a>. With the title attribute, you can provide additional information to the user about the link. Although the title attribute causes different browsers to do different things, generally speaking the title text appears as a "tool tip" when the visitor moves the mouse over the link.

In the following example, we add some additional information about the link using the title attribute:

<a href="http://www.google.com" title="Click this link to go to www.google.com!">Visit www.google.com</a>

The following shows the output:

Output showing the title text when the mouse is moved over the link
Output showing the title text when the mouse is moved over the link