English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML title-Attribut

title-Globales Attribut enthält Texte, die konsultative Informationen darstellen und dem zugehörigen Element zugeordnet sind. Diese Informationen sind in der Regel vorhanden, aber nicht unbedingt erforderlich, um sie als Hinweisinformationen dem Benutzer anzuzeigen.

HTML-Globale Attribute

Einige typische Anwendungen:
    Verweise: Titel oder Beschreibungen der verlinkten Dokumente
    Medienelemente, z.B. Bilder: Beschreibungen oder zugehörige Informationen
    Absätze: Fußnoten oder verwandte Kommentare
    Zitate: Autoreninformationen sowie andere

Online-Beispiel

title-Attribut in HTML-Dokumenten verwenden:

<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>HTML title Attribut verwenden (Grundlagen-Tutorial-Website oldtoolbag.com)</title>
</head>
<body>
<p><abbr title="World Health Organization">WHO</abbr>/abbr> was founded in 1948.</p>
<p title="Free Basic Tutorial">oldtoolbag.com</p>
</body>
</html>
Test see ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

All major browsers support the title attribute

Definition and Usage

The title attribute specifies additional information about the element.
When the mouse is moved over the element, this information is usually displayed as tooltip text.

HTML 4.01 with HTML5differences

In HTML5The title attribute can be used on any HTML element (it will validate on any HTML element. However, it may not be useful).

In HTML 4.01In, the title attribute cannot be used with <base>, <head>, <html>, <meta>, <param>, <script>, <style> and <title>.

syntax

<element title="text">

attribute value

valuedescription
textDefine the tooltip text (tooltip text) for the specified element.
HTML-Globale Attribute