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

HTML Reference Manual

Complete List of HTML Tags

HTML: <textarea> placeholder attribute

<textarea> The placeholder attribute specifies a short hint that describes the expected value of the text area. The short hint is displayed in the text area before the user enters a value.

 HTML <textarea> tag

Online Example

Text area with placeholder text:

<p>Who are you?</p>
<textarea rows="4"cols="50" placeholder="Describe yourself here..."></textarea>:
Test it out ‹/›

Browser Compatibility

IEFirefoxOperaChromeSafari

Internet Explorer 10Firefox, Opera, Chrome, and Safari support the placeholder attribute.

Note:Internet Explorer 9 and earlier versions do not support the placeholder attribute of the <textarea> tag.

Definition and Usage

The placeholder attribute specifies a short hint to describe the expected value of the text area.
The short hint will be displayed in the text area before the user enters a value.

HTML 4.01 and HTML5difference between

The placeholder attribute is an HTML5 new attribute added in

Syntax

<textarea placeholder="description">

Attribute value

ValueDescription
descriptionSpecify a short hint to describe the expected value of the text area.
 HTML <textarea> tag