Examples
Example 1
Use of the title attribute in an HTML document:
<abbr title="World Health Organization">WHO</abbr> was founded in 1948.
<p title="Free Web tutorials">Xhtml.co.il</p>
The output of the code above will be:
<p title="Free Web tutorials">Xhtml.co.il</p>
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.
Browser Support
W3C: The "W3C" column indicates whether or not the attribute is defined in the W3C HTML/XHTML recommendation.
Syntax
<element title="value">
Attribute Values
| Value | Description |
|---|---|
| text | A tooltip text for an element |
Was this information helpful?

