HTML tutorial
CSS3 tutorial
Bootstrap tutorial
JavaScript tutorial
JQuery tutorial
AngularJS tutorial
React tutorial
NodeJS tutorial
PHP tutorial
Python tutorial
Python3 tutorial
Django tutorial
Linux tutorial
Docker tutorial
Ruby tutorial
Java tutorial
C tutorial
C ++ tutorial
Perl tutorial
JSP tutorial
Lua tutorial
Scala tutorial
Go tutorial
ASP.NET tutorial
C # tutorial
Get the title of an element
The title
property sets or returns the value of an element's title attribute.
The title attribute specifies extra information about an element. It can be shown as a tooltip text when the mouse moves over the element.
Return the title property:
Set the title property:
Value | Description |
text | The value for the element's title attribute. |
Type | Description |
String | The value of the element's title attribute. |
element.title
is supported in all browsers:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |