In HTML5 the title attribute can be used in any HTML element
Applies To:
Element
Attribute
All HTML elements
title
Attribute Values:
Value
Description
text
Provides a tooltip text for an element.
Sample Coding for title Attribute in HTML:
Tryit<!DOCTYPE html><html><body><h1> WIKITECHY</h1><p>Everyone have
<abbr title="Personal Index Number">PIN
</abbr>number for their Bank account</p></body></html>
Code Explanation for title Attribute in HTML:
<abbr> tag is given to display the abbreviation of the content “Personal Index Number” (PIN).
title attribute provides additional information about an element
Output for title Attribute in HTML:
Personal Index Number is an abbreviation of PIN that has been displayed like tooltip when the cursor moves over to the PIN.