You can learn more about the HTML title attribute in its section, but in short, this attribute is mainly used to give extra information about an element which appears as a tool-tip if you hover a mouse cursor on top of the target element.
Element title Property Syntax:
element.title; element.title = “newValue”;
Element title Property Input Value
The value we set for this property will be used as the new value for the title attribute of an element.
Element title Property Return Value
The return value of this property is the current value set for the title attribute of the target element.