::placeholder

The ::placeholder pseudo-element sets the styling of the prompt text created by the placeholder attribute. You can use properties to change the appearance of the text, for example, set the font and color.

Syntax



element::placeholder {
  property: value;
}