The placeholder attribute is a default text inside an input box. It usually appears in light gray color. It gives a short hint to the user describing the expected value in that input field. This hint appears in the field even before the user enters a value. That is, a placeholder indicates what type of content is expected from the user to enter. The text remains in the input field until a value has been entered by the user. As mentioned, the default color of placeholder is light grey. So to style it, we will require vendor prefixed CSS selectors.