A valuable resource on styling placeholders can be found in this informative article: https://css-tricks.com/almanac/selectors/p/placeholder-shown/
::-webkit-input-placeholder { /* Styling for Safari, Chrome, and Opera */
color: orange;
}
:-moz-placeholder { /* Firefox version 18 and below */
color: orange;
}
::-moz-placeholder { /* Firefox version 19 and above */
color: orange;
}
:-ms-input-placeholder { /* Internet Explorer 10 and above */
color: orange
}
::-ms-input-placeholder { /* Microsoft Edge browser */
color: orange
}
:placeholder-shown { /* Standard property applies to all browsers */
color: orange;
}
For compatibility across different browsers:
Chrome Safari Firefox Opera IE Edge Android iOS
4+* 5+* 4+* 33+* 10+* Yes* Yes* Yes*
*All the browser compatibility information provided here originates from the same source!
To see a practical demonstration, check out this working example:
https://jsfiddle.net/guez0tb9/1/