HomeMenu
Jesus · Bible · HTML · CSS · JS · PHP · SVG · Applications

first-child

Description

The first-child pseudo-class for CSS represents an element that is the first child of its parent.

It is the same as :nth-child(1).

Syntax

selector:first-child
{
    property: value;
}

Examples

1 · CSS

2 · JS