English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
<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.
Text area with placeholder text:
<p>Who are you?</p> <textarea rows="4"cols="50" placeholder="Describe yourself here..."></textarea>:Test it out ‹/›
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.
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.
The placeholder attribute is an HTML5 new attribute added in
<textarea placeholder="description">
Value | Description |
---|---|
description | Specify a short hint to describe the expected value of the text area. |