Dofactory.com
Dofactory.com
Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

HTML <textarea> placeholder Attribute

The placeholder attribute adds a hint to a <textarea> element.

The hint appears as muted text inside the control and specifies what data to enter.

Example

#

A placeholder attribute on a <textarea> element.
The placeholder specifies the data the textarea expects.

<textarea rows="5" cols="75" placeholder="Please enter your feedback">
</textarea>

Using placeholder

The placeholder attribute adds a hint to the textarea.

The hint appears as muted text inside the control. It disappears when the user starts entering data.


Syntax

<textarea placeholder="text">

Values

#

Value Description
text String value. The hint text.

Browser support

Here is when placeholder support started for each browser:

Chrome
1.0 Sep 2008
Firefox
1.0 Sep 2002
IE/Edge
1.0 Aug 1995
Opera
1.0 Jan 2006
Safari
1.0 Jan 2003

You may also like

 Back to <textarea>

Last updated on Sep 30, 2023

Earn income with your HTML skills
Sign up and we'll send you the best freelance opportunities straight to your inbox.
We're building the largest freelancing marketplace for people like you.
By adding your name & email you agree to our terms, privacy and cookie policies.

Guides