Question - What are the uses of child selectors in CSS?
Answer -
Child selectors are primarily used in CSS to look up the ‘child’ component of an element in CSS.
Consider an example where the
tag is used in a paragraph. Then, the ‘ul’ tag becomes a child of the paragraph element. To implement this in CSS, the following syntax is used:
p > ul { font-size:20px; }