Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

HTML textarea placeholder attribute

HTML

Try it »


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

Internet Explorer 10, Firefox, Opera, Chrome, and Safari support the placeholder attribute.

**Note:** Internet Explorer 9 and earlier versions do not support the


Definition and Usage

The placeholder attribute specifies a short hint that describes the expected value of the text area.

The hint is displayed in the text area when it is empty and when the field gains and then loses focus.


Differences between HTML 4.01 and HTML5

The placeholder attribute is new in HTML5.


Syntax