blank

The blank CSS pseudo-class applies to user-input elements whose input value is empty.

Syntax

selector:blank
{
    property: value;
}

Examples

input

textarea

World Wide Web Consortium (W3C)

Home Menu