X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

HTML <textarea> placeholder Attribute

HTML textarea Tag Reference HTML <textarea> tag

Example

A text area with a placeholder text:

<textarea placeholder="Describe yourself with 4 words..."></textarea>

Try it yourself »

Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The placeholder attribute is supported in Internet Explorer 10, Firefox, Opera, Chrome, and Safari.

Note: The placeholder attribute of the <textarea> tag is not supported in Internet Explorer 9 and earlier versions.


Definition and Usage

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.


Differences Between HTML 4.01 and HTML5

The placeholder attribute is new in HTML5.


Syntax

<textarea placeholder="text">

Attribute Values

Value Description
text Specifies a short hint that describes the expected value of the text area


HTML textarea Tag Reference HTML <textarea> tag

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates FREE Website Templates Free HTML Templates

SHARE THIS PAGE

facebook