Friday, August 8, 2008

The <acronym> tag

acronym with a tooltip

The acronym element is a phrase element. This means that it is an inline element that adds semantic information to strings of text.

This tag is used to indicate that the enclosed text is an acronym. An acronym is a word made up of the the initial letters of a phrase - for example, HTML.

Just like the abbr element, Firefox and Opera render the acronym with a dotted underline, IE7 and Safari render them normally.

The title attribute is useful here because it can contain the expanded form of the acronym. This expanded form will then be displayed when the user hovers the mouse over the acronym.

Example: <acronym title="internet service provider">ISP</acronym>

No comments: