list first child code example
Example 1: css first child
/*CSS First - forth child*/
:first-child {}
:nth-child(2){}
:nth-child(3){}
:nth-child(4){}
Example 2: first-child
p:first-child {
background-color: yellow;
}
/*CSS First - forth child*/
:first-child {}
:nth-child(2){}
:nth-child(3){}
:nth-child(4){}
p:first-child {
background-color: yellow;
}