Menu Home

invalid

osbo.com | CSS | Pseudo-Classes | invalid

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

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

Syntax

selector:invalid
{
    property: value;
}

Examples

Internal

valid

External

World Wide Web Consortium (W3C)