Menu Home

required

osbo.com | CSS | Pseudo-Classes | required

The required CSS pseudo-class applies when an element is required.

Syntax

selector:required {
    property: value;
}

Examples

Internal

optional

External

World Wide Web Consortium (W3C)