21 Modern CSS questions from the CSS bank, written for Indian campus drives and tech interviews. Every question has a verified answer and an AI-tutor explanation on placd.
Sign up free to see every answer with its explanation and ask the AI tutor.
A.a property that sizes a box to a fixed width-to-height proportion automatically
B.reusable variables defined with a double-hyphen prefix and read through the var() function
C.a value letting a nested grid inherit the track sizing of its parent grid
D.a relational selector that styles an element based on the descendants or siblings it contains, often called the parent selector
Answer + AI explanation with a free account
2. Which term means: "a relational selector that styles an element based on the descendants or siblings it contains, often called the parent selector"?
Senior
A.container queries
B.:has() pseudo-class
C.custom properties
D.subgrid
Answer + AI explanation with a free account
3. Which statement is correct?
Senior
A.:has() pseudo-class — a function returning a value bounded between a minimum and maximum while scaling with a preferred middle value
B.:has() pseudo-class — an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity
C.:has() pseudo-class — reusable variables defined with a double-hyphen prefix and read through the var() function
D.:has() pseudo-class — a relational selector that styles an element based on the descendants or siblings it contains, often called the parent selector
Answer + AI explanation with a free account
4. What is custom properties?
Mid
A.a value letting a nested grid inherit the track sizing of its parent grid
B.rules that style elements based on the size of their nearest containment ancestor rather than the viewport
C.an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity
D.reusable variables defined with a double-hyphen prefix and read through the var() function
Answer + AI explanation with a free account
5. Which term means: "reusable variables defined with a double-hyphen prefix and read through the var() function"?
Mid
A.:has() pseudo-class
B.subgrid
C.clamp() function
D.custom properties
Answer + AI explanation with a free account
6. Which statement is correct?
Mid
A.custom properties — a function returning a value bounded between a minimum and maximum while scaling with a preferred middle value
B.custom properties — rules that style elements based on the size of their nearest containment ancestor rather than the viewport
C.custom properties — a property that sizes a box to a fixed width-to-height proportion automatically
D.custom properties — reusable variables defined with a double-hyphen prefix and read through the var() function
Answer + AI explanation with a free account
7. What is clamp() function?
Senior
A.a property that sizes a box to a fixed width-to-height proportion automatically
B.reusable variables defined with a double-hyphen prefix and read through the var() function
C.an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity
D.a function returning a value bounded between a minimum and maximum while scaling with a preferred middle value
Answer + AI explanation with a free account
8. Which term means: "a function returning a value bounded between a minimum and maximum while scaling with a preferred middle value"?
Senior
A.subgrid
B.cascade layers
C.clamp() function
D.container queries
Answer + AI explanation with a free account
9. Which statement is correct?
Senior
A.clamp() function — a function returning a value bounded between a minimum and maximum while scaling with a preferred middle value
B.clamp() function — rules that style elements based on the size of their nearest containment ancestor rather than the viewport
C.clamp() function — a value letting a nested grid inherit the track sizing of its parent grid
D.clamp() function — an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity
Answer + AI explanation with a free account
10. What is container queries?
Senior
A.a relational selector that styles an element based on the descendants or siblings it contains, often called the parent selector
B.a value letting a nested grid inherit the track sizing of its parent grid
C.rules that style elements based on the size of their nearest containment ancestor rather than the viewport
D.an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity
Answer + AI explanation with a free account
11. Which term means: "rules that style elements based on the size of their nearest containment ancestor rather than the viewport"?
Senior
A.container queries
B.aspect-ratio property
C.cascade layers
D.:has() pseudo-class
Answer + AI explanation with a free account
12. Which statement is correct?
Senior
A.container queries — rules that style elements based on the size of their nearest containment ancestor rather than the viewport
B.container queries — a function returning a value bounded between a minimum and maximum while scaling with a preferred middle value
C.container queries — a relational selector that styles an element based on the descendants or siblings it contains, often called the parent selector
D.container queries — an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity
Answer + AI explanation with a free account
13. What is subgrid?
Senior
A.an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity
B.rules that style elements based on the size of their nearest containment ancestor rather than the viewport
C.a value letting a nested grid inherit the track sizing of its parent grid
D.a function returning a value bounded between a minimum and maximum while scaling with a preferred middle value
Answer + AI explanation with a free account
14. Which term means: "a value letting a nested grid inherit the track sizing of its parent grid"?
Senior
A.subgrid
B.custom properties
C.aspect-ratio property
D.:has() pseudo-class
Answer + AI explanation with a free account
15. Which statement is correct?
Senior
A.subgrid — a relational selector that styles an element based on the descendants or siblings it contains, often called the parent selector
B.subgrid — a value letting a nested grid inherit the track sizing of its parent grid
C.subgrid — a property that sizes a box to a fixed width-to-height proportion automatically
D.subgrid — reusable variables defined with a double-hyphen prefix and read through the var() function
Answer + AI explanation with a free account
16. What is cascade layers?
Senior
A.an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity
B.a property that sizes a box to a fixed width-to-height proportion automatically
C.a relational selector that styles an element based on the descendants or siblings it contains, often called the parent selector
D.rules that style elements based on the size of their nearest containment ancestor rather than the viewport
Answer + AI explanation with a free account
17. Which term means: "an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity"?
Senior
A.clamp() function
B.aspect-ratio property
C.cascade layers
D.container queries
Answer + AI explanation with a free account
18. Which statement is correct?
Senior
A.cascade layers — a property that sizes a box to a fixed width-to-height proportion automatically
B.cascade layers — a value letting a nested grid inherit the track sizing of its parent grid
C.cascade layers — an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity
D.cascade layers — rules that style elements based on the size of their nearest containment ancestor rather than the viewport
Answer + AI explanation with a free account
19. What is aspect-ratio property?
Mid
A.a property that sizes a box to a fixed width-to-height proportion automatically
B.a value letting a nested grid inherit the track sizing of its parent grid
C.reusable variables defined with a double-hyphen prefix and read through the var() function
D.an at-rule mechanism that groups rules into ordered priority tiers independent of selector specificity
Answer + AI explanation with a free account
20. Which term means: "a property that sizes a box to a fixed width-to-height proportion automatically"?
Mid
A.custom properties
B.container queries
C.aspect-ratio property
D.clamp() function
Answer + AI explanation with a free account
21. Which statement is correct?
Mid
A.aspect-ratio property — rules that style elements based on the size of their nearest containment ancestor rather than the viewport
B.aspect-ratio property — a property that sizes a box to a fixed width-to-height proportion automatically
C.aspect-ratio property — a relational selector that styles an element based on the descendants or siblings it contains, often called the parent selector
D.aspect-ratio property — a function returning a value bounded between a minimum and maximum while scaling with a preferred middle value
Answer + AI explanation with a free account
Free to start
Answers, AI explanations, and a free readiness check
Sign up free to check your answers with explanations, ask the AI tutor anything on any question, and take the free 2-minute readiness check for a scored result. One full AI mock interview, scored like a real panel, is free when you sign up.