Computer science · University
CSS layout and cascade
A pattern that chooses which elements a CSS rule targets.
Prerequisites
Basic computer literacy.
Study notes
Selector
A pattern that chooses which elements a CSS rule targets.
Cascade
The rule system that resolves competing CSS declarations.
Box model
The content, padding, border and margin dimensions of an element.
Responsive design
Adapting layout and presentation to different viewport sizes and capabilities.
Worked examples
Which term best matches this description: A pattern that chooses which elements a CSS rule targets.
Selector is the matching concept in this lesson.
Selector
Which term best matches this description: The rule system that resolves competing CSS declarations.
Cascade is the matching concept in this lesson.
Cascade
Check your understanding
Which concept would you apply first in a situation where the content, padding, border and margin dimensions of an element.
- Box model
- Cascade
- Selector
- Responsive design
Name the concept described as: Adapting layout and presentation to different viewport sizes and capabilities.
Which statement about Selector is most accurate?
- A pattern that chooses which elements a CSS rule targets.
- The content, padding, border and margin dimensions of an element.
- Adapting layout and presentation to different viewport sizes and capabilities.
- The rule system that resolves competing CSS declarations.
Explain one important difference between Selector and Cascade.
Answers and marking guidance
Answers and marking notes
- Box model
The scenario directly calls for Box model.
- Responsive design
The intended concept is Responsive design.
- A pattern that chooses which elements a CSS rule targets.
The definition in the lesson notes gives the required condition.
- Selector: A pattern that chooses which elements a CSS rule targets. Cascade: The rule system that resolves competing CSS declarations.
Credit a clear distinction using both definitions and an appropriate example if supplied.
Further reading and review references
These are reference links, not copied exercises, institutional endorsement or proof of independent review.
AI-assisted preview; independent educational review required. Level labels describe prerequisites, not accreditation or official curriculum alignment.