Horje
HTML title Attribute

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.

The title attribute can be used on any HTML element (it will validate on any HTML element. However, it is not necessarily useful).


Browser Support

Syntax

<element title="text">

Attribute Values

Value Description
text A tooltip text for an element

How to Use of the title attribute in an HTML document

See the Example.
index.html
Example: HTML
<!DOCTYPE html>
<html>
<body>

<p><abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
<p title="Free Web tutorials">Horje.com</p>

</body>
</html>

Output should be:

How to Use of the title attribute in an HTML document




html title attribute

Type:
Develop
Category:
Web Tutorial
Sub Category:
HTML Global Attributes
Uploaded by:
Admin


Read Article
https://develop.horje.com/learn/1434/reference