Easy Tutorial
❮ Ev Onblur Att Details Open ❯

HTML <textarea> placeholder Attribute

HTML <textarea> Tag

Example

Text area with placeholder text:


Browser Support

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

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


Definition and Usage

The placeholder attribute specifies a short hint that describes the expected value of a text area.

The hint is displayed in the text area when it is empty and disappears when the field gains then loses focus.


Differences Between HTML 4.01 and HTML5

The placeholder attribute is new in HTML5.


Syntax

Attribute Values

Value Description
text Specifies a short hint that describes the expected value of the text area.

❮ Ev Onblur Att Details Open ❯