CSS :first-child Selector
Example
li:first-child {
background: green;
}
Meaning
The :first-child selector represents the first element among a group of sibling elements.
Version: CSS2
Standard Syntax
:first-child {
css declarations;
}
Browser Support
The numbers in the table specify the first browser version that fully supports the property.