Menu Home

optional

osbo.com | CSS | Pseudo-Classes | optional

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

Syntax

selector:optional
{
    property: value;
}

Examples

Internal

required

External

World Wide Web Consortium (W3C)