Challenge - 5 Problems
ITCSS Mastery Badge
Get all challenges correct to earn this badge!
Test your skills under time pressure!
🧠 Conceptual
intermediate1:30remaining
Understanding ITCSS Layer Order
In ITCSS, styles are organized in layers to manage CSS specificity and maintainability. Which layer should contain generic HTML element styles like
body and h1?Attempts:
2 left
💡 Hint
Think about where you put styles that affect all elements globally.
✗ Incorrect
The Generic layer in ITCSS contains styles that affect basic HTML elements globally, such as body and h1. This layer comes after Settings and Tools but before Components.
📝 Syntax
intermediate2:00remaining
SASS Import Order in ITCSS
Given the ITCSS layers, which SASS import order correctly follows the ITCSS methodology?
Attempts:
2 left
💡 Hint
Remember ITCSS layers start from Settings and go towards Utilities.
✗ Incorrect
ITCSS import order starts with Settings (variables), then Tools (mixins/functions), Generic (reset/normalize), Elements (base styles), Objects (layout patterns), Components (UI components), and finally Utilities (helpers).
❓ selector
advanced1:30remaining
Specificity in ITCSS Layers
Which selector from the ITCSS layers will have the highest CSS specificity when compiled?
Attempts:
2 left
💡 Hint
Higher specificity comes from IDs and class combinations.
✗ Incorrect
The selector #header .nav-item has an ID and a class, giving it higher specificity than simple classes or element selectors.
❓ layout
advanced1:30remaining
Using ITCSS Objects Layer for Layout
In ITCSS, the Objects layer is for design patterns and layout. Which SASS code snippet best represents a reusable layout object for a grid container?
Attempts:
2 left
💡 Hint
Objects layer focuses on layout and structure, not colors or borders.
✗ Incorrect
The code with display: flex and flex-wrap creates a flexible grid layout, which fits the purpose of the Objects layer.
❓ accessibility
expert2:00remaining
Accessibility in ITCSS Utilities Layer
Which utility class defined in the ITCSS Utilities layer best helps improve accessibility by visually hiding content but keeping it readable by screen readers?
Attempts:
2 left
💡 Hint
Screen readers can read content that is visually hidden but not removed from the accessibility tree.
✗ Incorrect
The .sr-only class hides content visually but keeps it accessible to screen readers, improving accessibility.