valid

The valid CSS pseudo-class applies when the element is valid with respect to data validity semantics.

An element which lacks data validity semantics is neither :valid nor :invalid.

Syntax

selector:valid
{
    property: value;
}

Examples

Internal

invalid

External

World Wide Web Consortium (W3C)

Home Menu