Latest web development tutorials

HTML title attribute

HTML Global Attributes HTML Global Attributes

Examples

Use the title attribute in an HTML document:

<P> <abbr title = "World Health Organization"> WHO </ abbr> was founded in 1948. </ P>
<P title = "tutorial"> This tutorial </ p>

try it"

Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the title attribute


Definition and Usage

title attribute specifies additional information about the element.

This information will usually display a tooltip text (tooltip text) when the mouse over the element.


Differences between HTML 4.01 and HTML5

In HTML5, title attribute can be used with any HTML element (it will verify that any HTML element, but not necessarily useful).

In HTML 4.01, tabindex attribute can not be used: <base>, <head>, <html>, <meta>, <param>, <script>, <style>, and <title>.


grammar

<Elementtitle = "text">

Property Value

value description
text Tooltip text specified element (tooltip text).


HTML Global Attributes HTML Global Attributes