pseudo selector

·

1 min read

div:first-child{
color:red
}
div :fist-child{
color:green
}
the difference is of space between div and child if not space means only direct child
if space is given all the element