HTML title Attribute

HTML title Attribute: This attribute specifies extra information about an element. When the mouse moves over the element then it shows the information.

HTML title Attribute

This attribute can be applied to all the HTML elements.

Attribute Value

This attribute contains a single value text which is used as the tooltip text for an element. This title is associated with all HTML elements.

Syntax: <element title = “text”>

Browsers Support

This attribute is supported by the following browsers:

  • Chrome
  • Firefox
  • Internet Explorer
  • Safari
  • Opera

Example: for HTML title attribute

<!DOCTYPE html>
<html>
<body>
<p><abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p>
<p title="Free Web tutorials">tutorials.freshersnow.com</p>
</body>
</html>

Output:

WHO was founded in 1948.
tutorials.freshersnow.com