09-08-2009, 09:06 PM
|
#8 (permalink)
|
|
Super Moderator
Join Date: 10-29-07
Location: British Columbia, Canada
Posts: 3,301
|
It is called the title attribute.
Quote:
|
The title attribute may be set for both A and LINK to add information about the nature of a link. This information may be spoken by a user agent, rendered as a tool tip, cause a change in cursor image, etc.
|
Reference: Links in HTML Documents - 12.1.4 Link titles
Quote:
Definition and Usage
The title attribute specifies extra information about an element.
The information is most often shown as a tooltip text when the mouse moves over the element.
Tip: The title attribute is often used with form and a elements, to provide information about input formats and link destinations. It is also a required attribute for the abbr and acronym elements.
|
Reference: HTML title Attribute
An image has an alt attribute not an alt tag.
Quote:
Tips and Notes
Tip: The alt attribute is meant to be used as an alternative text if the image is not available, not as a mouse-over text. To show a mouse-over text on images or image-maps, use the title attribute, like this: <img src="angry.gif" alt="Angry face" title="Angry face" />
Note: When a web page is loaded, it is the browser, at that moment, that actually gets the image from a web server and inserts it into the page. Therefore, make sure that the images actually stay in the same spot in relation to the web page, otherwise your visitors will get a broken link icon. The broken link icon is shown if the browser cannot find the image.
|
And, from Google:
Quote:
|
Some of you have asked about the difference between the "alt" and "title" attributes. According to the W3C recommendations, the "alt" attribute specifies an alternate text for user agents that cannot display images, forms or applets. The "title" attribute is a bit different: it "offers advisory information about the element for which it is set." As the Googlebot does not see the images directly, we generally concentrate on the information provided in the "alt" attribute. Feel free to supplement the "alt" attribute with "title" and other attributes if they provide value to your users!
|
Reference: Using ALT attributes smartly - Official Google Webmaster Central Blog
|
|
|