HTML <textarea> placeholder attribute
Definition and Usage
placeholder
The attribute specifies a brief hint for the expected value of the described text area.
A brief hint will be displayed in the text area before the user enters a value.
Example
Text area with placeholder text:
<textarea placeholder="Here is a brief hint for the expected value ..."></textarea>
Syntax
<textarea placeholder="text">
Attribute Value
Value | Description |
---|---|
text | Specifies a brief hint for the expected value of the described text area. |
Browser Support
The numbers in the table indicate the first browser version to fully support this attribute.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | 4.0 | 5.0 | 11.5 |