1.

What Is Descendant Selector?

Answer»

SUPPOSE you want to apply a style RULE to a PARTICULAR ELEMENT only when it lies inside a particular element. As given in the following example, style rule will apply to <em&GT; element only when it lies inside <ul> tag.
ul em {
color: #000000;
}

Suppose you want to apply a style rule to a particular element only when it lies inside a particular element. As given in the following example, style rule will apply to <em> element only when it lies inside <ul> tag.
ul em {
color: #000000;
}



Discussion

No Comment Found