HTML title Attribute

Definition and Usage

title The attribute specifies additional information about the element.

This information is usually displayed as a tooltip text when the mouse is moved over the element.

Tip:title The attribute is often used with form and a elements to provide information about input format and link targets. It is also a required attribute for abbr and acronym elements.

title The attribute can be used with any HTML element (it will validate any HTML element, but may not be useful).

See also:

HTML Tutorial:HTML attributes

HTML DOM Reference Manual:HTML DOM title attribute

CSS Tutorial:CSS Tooltips

Example

Use the title attribute in an HTML document:

<p><abbr title="World Health Organization">WHO</abbr> was established in 1948.</p>
<p title="Free Web Tutorials">codew3c.com</p>

Try It Yourself

Syntax

<element title="text">

Attribute Value

Value Description
text Specifies the tooltip text (tooltip text) for the element.

Browser Support

Chrome Edge Firefox Safari Opera
Chrome Edge Firefox Safari Opera
Support Support Support Support Support