next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
next
Round
Technologies
Coding Problems
Bookmarks
Learning Paths
1
How is the child combinator different from the descendant combinator?
Intermediate
2
Write an example using the child combinator.
Beginner
3
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?
Intermediate
4
What happens when combinators are used inside media queries? How can combinators improve maintainability in large CSS projects?
Intermediate
5
How do combinators affect CSS inheritance and cascade?
Intermediate
6
Can combinators be used together with pseudo-classes or pseudo-elements?
Intermediate
7
How can overusing descendant combinators affect performance?
Intermediate
8
What happens if you use a combinator between unrelated elements?
Intermediate
9
Can you list all the types of CSS combinators?
Intermediate
10
What is the descendant combinator in CSS?
Beginner
11
What is the syntax for a combinator selector?
Beginner
12
What are CSS combinators? How many types of CSS combinators are there?
Intermediate
13
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?
Beginner
14
Give a real-world example of using multiple combinators in a single rule.
Intermediate
15
What is the purpose of using combinators in CSS?
Intermediate
16
How can you style all <span> elements that come after a specific <div>?
Beginner
17
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>?
Beginner
18
How would you change the color of a paragraph that immediately follows a heading?
Beginner
19
What happens if the sibling element doesn’t exist in the DOM? Can you combine multiple combinators in a single selector? Give an example.
Intermediate
20
Can the general sibling combinator (~) select elements that appear before the reference element?
Beginner
21
When would you use the general sibling combinator (~) instead of the adjacent sibling combinator (+)?
Beginner
22
How does the adjacent sibling combinator (+) differ from the general sibling combinator (~)? What is the general sibling combinator (~) used for?
Beginner
23
Can the adjacent sibling combinator select multiple elements? Write an example using the adjacent sibling combinator.
Beginner
24
When would you prefer to use the child combinator instead of the descendant combinator?
Beginner
25
Can the child combinator select a grandchild element? Why or why not?
Beginner
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
Share
this topic
Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.