HTML title Attribute
HTML Standard Attributes
Definition and Usage
The title attribute specifies extra information about an element.
The extra information is shown as a tooltip when the mouse cursor hovers the
element.
It is mostly used with form and a elements to provide information about input
formats and link destinations. It is also a required attribute for the abbr and
acronym elements.
Syntax
<element title="text">
Some text or element</element>
OR
<element title="text" />
|
Parameter |
Description |
text |
Required. The tooltip text for the element. |
element |
Required. The HTML element using the title. The title attribute
can be used on almost all HTML elements.
Exceptions:
- base
- head
- html
- meta
- param
- script
- style
- title
|
Support
W3C: The "W3C" column indicates whether or not the
attribute is defined in the W3C HTML/XHTML recommendation.
Internet Explorer |
Firefox |
Opera |
Safari |
W3C |
YES |
YES |
YES |
YES |
YES |
Example
Source |
Output |
<p title="A greeting">Hello World</p> |
Hello World
|
Try-It-Yourself Demos
The title
attribute
How to use the title attribute.
HTML Standard Attributes
 |

|
|
See why there are 20,000+ Ektron integrations worldwide.
Request an INSTANT DEMO or download a FREE TRIAL today. |
|
|
|