Website Developer Question:
Download Job Interview Questions and Answers PDF
Tell me what Are Child Selectors In CSS?
Answer:
A child selector looks up for the child of some element. To form a child selector, we need two or more selectors separated by “greater than” symbol.
Let’s take an example. We have a <ul> tag inside a paragraph. Here, <ul> is the child of the paragraph element. So, to apply the CSS styles, we can use the following syntax.
p > ul { font-size:15px; }
Let’s take an example. We have a <ul> tag inside a paragraph. Here, <ul> is the child of the paragraph element. So, to apply the CSS styles, we can use the following syntax.
p > ul { font-size:15px; }
Download Website Developer Interview Questions And Answers
PDF
Previous Question | Next Question |
Tell me how Does CSS3 Support The Responsive Web Designing? | Tell me what Is CSS Box Model And What Are Its Components? |