title attribute
title=text
Explanation
Title attribute is used to provide title for a webpage.
Values added with this attribute are:
| Value | Description |
| Text | Signifies information regarding the element. |
Example Code 1:
Result :
CBI was launched by Central Government in 1963
Example Code 2:
Result :
Hscripts
- Place the cursor on top of the underlined word to view the information.
- Even it can be used to show the title for an image. Hover on the image and see the title.
It is supported by most of the elements in HTML5 and it is available in the older versions of the HTML.
Limitations:
It is applicable to all the major browsers.