HTML CSS examples for HTML Global Attribute:title
The title attribute specifies extra information about an element.
The information is most often shown as a tooltip text when the mouse moves over the element.
Value | Description |
---|---|
text | A tooltip text for an element |
The following code shows how to Use of the title attribute in an HTML document:
<!DOCTYPE html> <html> <body> <p><abbr title="World Health Organization">WHO</abbr> was founded in 1948.</p> <p title="Free Web tutorials">http://java2s.com</p> </body><!-- w ww . jav a 2s .c om--> </html>