Global title Attribute - HTML CSS HTML Global Attribute

HTML CSS examples for HTML Global Attribute:title

Description

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.

Attribute Values

Value Description
text A tooltip text for an element

The following code shows how to Use of the title attribute in an HTML document:

Demo Code

ResultView the demo in separate window

<!DOCTYPE html>
<html>
<body>

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

</body><!--   w  ww . jav  a  2s  .c om-->
</html>

Related Tutorials