Menu Home

placeholder-shown

osbo.com | CSS | Pseudo-Classes | placeholder-shown

The placeholder-shown CSS pseudo-class matches an input element that is showing such placeholder text.

Syntax

selector:placeholder-shown {
    property: value;
}

Examples

World Wide Web Consortium (W3C)