Change an HTML input’s placeholder color with CSS
Implementation There are three different implementations: pseudo-elements, pseudo-classes, and nothing. WebKit, Blink (Safari, Google Chrome, Opera 15+) and Microsoft Edge are using a pseudo-element: ::-webkit-input-placeholder. [Ref] Mozilla Firefox 4 to 18 is using a pseudo-class: :-moz-placeholder (one colon). [Ref] Mozilla Firefox 19+ is using a pseudo-element: ::-moz-placeholder, but the old selector will still work for … Read more