HTML
Example
a text area with placeholder text:
Try it »
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
Definition and Usage
The placeholder attribute specifies a short hint that describes the expected value of the text area.
The hint is displayed in the text area when it is empty and when the field gains and 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 a text area. |
HTML