next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
Login
</>
Loading Topics...
1
What are CSS combinators? How many types of CSS combinators are there?
Expert
High
2
What is the purpose of using combinators in CSS?
Expert
High
3
Can you list all the types of CSS combinators?
Expert
High
4
What is the syntax for a combinator selector?
Expert
High
5
What is the descendant combinator in CSS?
Expert
High
6
How does the descendant combinator differ from a direct child combinator? Write an example of a descendant combinator selector. What is the impact of using multiple descendant selectors in a chain?
Expert
High
7
How can overusing descendant combinators affect performance?
Expert
High
8
How is the child combinator different from the descendant combinator?
Expert
High
9
Write an example using the child combinator.
Expert
High
10
Can the child combinator select a grandchild element? Why or why not?
Expert
High
11
When would you prefer to use the child combinator instead of the descendant combinator?
Expert
High
12
Can the adjacent sibling combinator select multiple elements? Write an example using the adjacent sibling combinator.
Expert
High
13
How does the adjacent sibling combinator (+) differ from the general sibling combinator (~)? What is the general sibling combinator (~) used for?
Expert
High
14
When would you use the general sibling combinator (~) instead of the adjacent sibling combinator (+)?
Expert
High
15
Can the general sibling combinator (~) select elements that appear before the reference element?
Expert
High
16
What happens if the sibling element doesn’t exist in the DOM? Can you combine multiple combinators in a single selector? Give an example.
Expert
High
17
Can combinators be used together with pseudo-classes or pseudo-elements?
Expert
High
18
What happens if you use a combinator between unrelated elements?
Expert
High
19
How do combinators affect CSS inheritance and cascade?
Expert
High
20
How would you select all <p> elements that are inside a <div> using combinators? How would you style only the direct child <li> elements inside a <ul>?
Expert
High
21
How would you change the color of a paragraph that immediately follows a heading?
Expert
High
22
How can you style all <span> elements that come after a specific <div>?
Expert
High
23
Write a selector to target all <a> tags inside a <nav> but not inside a <footer>. How would you use combinators to create alternating styles between elements?
Expert
High
24
What happens when combinators are used inside media queries? How can combinators improve maintainability in large CSS projects?
Expert
High
25
Give a real-world example of using multiple combinators in a single rule.
Expert
High
All Topics
1
Fundamentals
0/5 topics · 0%
Basics
Selectors
Box model
Text formatters
Combinators
2
Positioning & layout
0/4 topics · 0%
Positioning
Display
Overflow
Breakpoint
3
Modern layout
0/5 topics · 0%
Pseudo classes
Pseudo elements
Flexbox
Grid
Transformation and Transition
4
Beyond core
0/2 topics · 0%
Frameworks
Everything else