![]() |
VOOZH | about |
CSS :first-child selector is used to select the elements that are the first child of the parent element.
:first-child {
/* CSS property */
}Example 1: This example shows the use of the CSS first child selector.
Output:
Example 2: This example shows the use of the CSS first child selector.
Output:
Supported Browsers: