Interviewer And Interviewee Guide

Website Developer Interview Question:

Tell me what Are Child Selectors In CSS?

Submitted by: Muhammad
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; }
Submitted by: Muhammad

Read Online Website Developer Job Interview Questions And Answers
Copyright 2007-2024 by Interview Questions Answers .ORG All Rights Reserved.
https://InterviewQuestionsAnswers.ORG.