HTML DOM title property
Definition and Usage
The title property sets or returns the title of an element.
Syntax
HTMLElementObject.title=
title
Browser support





All major browsers support the title property
Example
Example 1
Return the title property of the body element:
Output result:
Body title: mytitle
An alternate way: mytitle
Try it »
Example 2
Return the title of the area map in an image:
width="145" height="126"
alt="Planets"
usemap ="#planetmap">
Venus' advisory title (mouse over the Venus planet):
Try it »
Element object