A text area with a placeholder text:
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 gets focus.
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 |
The placeholder attribute is new in HTML5.
Value | Description |
---|---|
text | Specifies a short hint that describes the expected value of the text area |