Article Categories
- All Categories
-
Data Structure
-
Networking
-
RDBMS
-
Operating System
-
Java
-
MS Excel
-
iOS
-
HTML
-
CSS
-
Android
-
Python
-
C Programming
-
C++
-
C#
-
MongoDB
-
MySQL
-
Javascript
-
PHP
Selected Reading
HTML DOM Input Email placeholder Property
The HTML DOM Input Email placeholder property sets/returns a string generally used to give hints to user of what the input text will look like.
Syntax
Following is the syntax −
- Returning string value
inputEmailObject.placeholder
- Setting placeholder to stringValue
inputEmailObject.placeholder = stringValue
Example
Let us see an example of Input Email placeholder property −
Input Email placeholder
Output
This will produce the following output −
Before clicking ‘What details should be entered?’ button −

After clicking ‘What details should be entered?’ button −

Advertisements
