HTML title Attribute: This attribute specifies extra information about an element. When the mouse moves over the element then it shows the information.
HTML title Attribute
This attribute can be applied to all the HTML elements.
This attribute contains a single value text which is used as the tooltip text for an element. This title is associated with all HTML elements.
Syntax: <element title = “text”>
This attribute is supported by the following browsers:
- Internet Explorer
Example: for HTML title attribute
<!DOCTYPE html> <html> <body> <p><abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p> <p title="Free Web tutorials">tutorials.freshersnow.com</p> </body> </html>
WHO was founded in 1948.