Definition And Usage :

* The placeholder attribute specifies a short hint that describes the expected value of an input field (e.g. a sample value or a short description of the expected format).
* The hint is displayed in the input field when it is empty, and disappears when the field gets focus.
* The placeholder attribute works with the following input types: text, search, url, tel, email, and password.

Example :
                    


Demo :


NOTE :

* The placeholder attribute is supported in all major browsers, except Internet Explorer.

* The placeholder attribute is new in HTML5.