HTML <textarea> placeholder attribute
Definition and usage
placeholder
The attribute specifies a brief hint for the expected value of the description 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="Describe the expected value here ..."></textarea>
Syntax
<textarea placeholder="text">
attribute value
value | description |
---|---|
text | Specifies a brief hint for the expected value of the description text area. |
Browser support
The numbers in the table indicate the first browser version that fully supports this property.
Chrome | Edge | Firefox | Safari | Opera |
---|---|---|---|---|
Chrome | Edge | Firefox | Safari | Opera |
Support | 10.0 | 4.0 | 5.0 | 11.5 |