THE WORLD'S LARGEST WEB DEVELOPER SITE

HTML <textarea> placeholder Attribute

❮ HTML <textarea> tag

Example

A text area with a placeholder text:

<textarea placeholder="Describe yourself here..."></textarea>
Try it Yourself »

Definition and Usage

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

The short hint is displayed in the text area before the user enters a value.


Browser Support

The numbers in the table specify the first browser version that fully supports the attribute.

Attribute
placeholder Yes 10.0 4.0 5.0 11.5

Syntax

<textarea placeholder="text">

Attribute Values

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

❮ HTML <textarea> tag