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

HTML Referenzhandbuch

Vollständiges Verzeichnis der HTML-Tags

HTML: <textarea> Placeholder-Attribut

<textarea> das Placeholder-Attribut gibt einen kurzen Hinweis an, der die erwartete Wertigkeit des Textfeldes beschreibt. Dieser kurze Hinweis wird im Textfeld angezeigt, bevor der Benutzer einen Wert eingibt.

 HTML <textarea> Tag

Online-Beispiel

Textfeld mit Platzhaltertext:

<p> Wer sind Sie?</p>
<textarea rows="4"cols="50" placeholder="Describe yourself here...">textarea>:/Test and see ‹

Browser CompatibilityIEFirefoxOperaChrome

Note: 10Safari

Firefox, Opera, Chrome and Safari support the placeholder attribute.Note: 9 Internet Explorer

and earlier versions do not support the placeholder attribute of the <textarea> tag.

Definition and Usage
The placeholder attribute specifies a brief hint to describe the expected value of the text area.

The short hint is displayed in the text area before the user enters a value. 4HTML1 .05and HTML

difference between5 placeholder attribute is an HTML

new attribute in

SyntaxDescription<textarea placeholder="

">

Attribute ValueValue
DescriptionSpecify a brief hint to describe the expected value of the text area.
 HTML <textarea> Tag