HTML title Attribute
Example
<h2 title="HyperText Markup Language">HTML</h2>
<p>The first version of HTML was written by Tim Berners-Lee in 1993. Since then, there have been many different versions of HTML. The most widely used version throughout the 2000`s was HTML 4.01, which became an official standard in December 1999.</p>
Meaning
The title attribute is used to provide advisory text about an element or its contents.
Using with scripting, this attribute can provide facilities for automatic index generation.
Note: As of the writing of this edition, no formatting can be applied within advisory text, though the HTML5 specification does specifies that Unicode linefeeds (\u000A) should eventually be supported.
Standard Syntax
<element title="text">
Browser Support
Status
Applies to:
The title attribute can be used on the following element:
Element | Attribute |
---|---|
All HTML elements. | title |
Attribute Values
Value | Description |
---|---|
text | Specifies a tooltip text for an element |