title attribute

title=text

Explanation

Title attribute is used to provide title for a webpage.
<ele title="Text">
Values added with this attribute are:
ValueDescription
TextSignifies 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.

Ask Questions

Ask Question