1.

What Is A Child Selector?

Answer»

Consider the following example:

BODY > p
{
color: #000000;
}

This RULE will RENDER all the paragraphs in black if they are direct child ofelement. Other paragraphs put inside other elements LIKE or would not have any effect of this rule.

Consider the following example:

body > p
{
color: #000000;
}

This rule will render all the paragraphs in black if they are direct child ofelement. Other paragraphs put inside other elements like or would not have any effect of this rule.



Discussion

No Comment Found