HTML Global title Attribute

❮ Previous Global Attributes Next ❯


<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>


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


Attribute Values

Value Description
text Specifies a tooltip text for an element
❮ Previous Global Attributes Next ❯