Skip to: content, navigation

by Ian Lloyd

title (HTML attribute)

Spec
Depr. Version
No HTML 4
Browser support full matrix
IE7+ FF1+ Saf1.3+ Op9.5+
Full Full Partial Partial
title="string"

Example

The title attribute is applied to an abbreviation below:

<p>The page had the phrase <abbr title="Please Turn Over">PTO</abbr>
    written on it. If only I knew what PTO meant. So I turned the page
    to see if that revealed the answer.</p>

Description

The abbreviation is expanded within the title attribute, which, while it’s not technically required for the abbr element, is advisable at least for the first instance of abbr; otherwise, you’d be indicating an abbreviation but not providing any further information about what it’s an abbreviation of.

Value

The content of this attribute is the fully expanded version of the abbreviation contained within the element.

Compatibility

IE5.5None
6.0None
7.0Full
Firefox1.0Full
1.5Full
2.0Full
Safari1.3Partial
2.0Partial
3.0Partial
Opera9.2Full
9.5Partial

Browser support is mixed for this attribute in this instance (note that title is used for other elements; the compatibility notes here relate only to its ability to draw attention to the presence of an abbreviation).

In the chart above, the support levels have been decided on this basis:

  • full where the browser displays the abbreviation with an underline and provides tooltip on mouseover
  • partial where the browser provides a tooltip on hover, but doesn’t display an underline (though it can be styled with CSS and accessed using JavaScript and the DOM)
  • none where no visual rendering is provided, and the attribute isn’t recognized in the DOM

User-contributed notes

Add a note

To post a note on this topic, please log in with your SitePoint username and password. If you don't have an account yet, you can create a new account for free.

Related Products

The Principles of Beautiful Web Design

Best Seller!

You don’t need to go to Art School to design great looking web sites!

Book Cover: The Principles of Beautiful Web Design

Download the FREE sample chapters