2-180%
3.1-40%
3.2-4.10%
BaselineWidely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since July 2022.
The ::placeholder pseudo-element represents placeholder text in an input field: text that represents the input and provides a hint to the user on how to fill out the form. For example, a date-input field might have the placeholder text YYYY-MM-DD to clarify that numeric dates are to be entered in year-month-day order.