English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
The title global attribute includes the text of the advisory information and the element it belongs to. This information is usually present, but not necessary, and is displayed to the user as a hint.
Some typical uses:
Links: title or description of the linked document
Media elements, such as images: descriptions or associated information
Paragraphs: footnotes or related comments
References: author information, and others
Using the title attribute in HTML documents:
<!doctype html> <html> <head> <meta charset="UTF-8"> <title>HTML title attribute usage (Basic Tutorial Website oldtoolbag.com)</title> </head> <body> <p><abbr title="World Health Organization">WHO</abbr>/abbr> a été fondé en 1948.</p> <p title="Tutoriel gratuit de base">oldtoolbag.com</p> </body> </html>Voyons voir ‹/›
IEFirefoxOperaChromeSafari
Tous les navigateurs populaires prennent en charge l'attribut title
L'attribut title spécifie des informations supplémentaires sur l'élément.
Lorsque le curseur de la souris est placé sur un élément, cette information est généralement affichée sous forme de texte d'info-bulle.
Dans HTML 4.01Dans HTML, l'attribut title ne peut pas être utilisé avec les balises <base>, <head>, <html>, <meta>, <param>, <script>, <style> et <title>.
<element title="text">
Valeur | Description |
---|---|
text | Texte d'info-bulle (tooltip text) de l'élément. |