HTML placeholder input code example

Example 1: placeholder css

::-webkit-input-placeholder {color: pink;} /* Chrome/Opera/Safari */
::-moz-placeholder { color: pink;} /* Firefox 19+ */
:-ms-input-placeholder { color: pink;} /* IE 10+ */
:-moz-placeholder {color: pink;}  /* Firefox 18- */

Example 2: placeholder html

<input placeholder="text"> 
<!-- Change "text" to what you would like the placeholder text to be -->

Example 3: placeholder html

<input placeholder = "Placeholder"></input>

Example 4: input text hint

placeholder="123-45-678"

Tags:

Css Example