81. Which CSS methodology uses block, element, modifier syntax?
- a) BEM
- b) SMACSS
- c) OOCSS
- d) Atomic CSS
.card__title--active.
Test your knowledge of CSS with these interactive multiple-choice questions.
81. Which CSS methodology uses block, element, modifier syntax?
.card__title--active.
82. Which CSS preprocessor introduces variables with $ symbol?
$primary-color: #333;.
83. Which Sass feature allows reusable code blocks?
@mixin) bundle styles for reuse with @include.
84. Which CSS feature allows styling based on container size?
@container (min-width: 300px) adapts styles to parent dimensions.
85. Which CSS feature controls rule priority layers?
@layer base, components; defines explicit precedence layers.
86. Which CSS property enables subgrid functionality?
grid-template-columns: subgrid.
87. Which CSS feature allows scoped styles?
@scope (.card) { ... } limits styles to a DOM subtree.
88. Which CSS property enables color mixing?
color-mix(in lch, purple 50%, plum 50%) blends colors in specified color space.
89. Which CSS feature allows conditional rules based on browser support?
@supports (display: grid) { ... } checks browser capability.
90. Which CSS function creates color gradients?
background: linear-gradient(red, blue) creates smooth color transitions.
91. Which CSS property controls how elements break across pages/columns?
break-inside: avoid prevents unwanted splits in printed/multi-column layouts.
92. Which CSS property enables smooth scrolling?
scroll-behavior: smooth animates scroll actions.
93. Which CSS feature snaps scrolling to specific points?
scroll-snap-type: y mandatory forces alignment to scroll-snap-align points.
94. Which CSS property creates a sticky table header?
th { position: sticky; top: 0 } keeps headers visible during scroll.
95. Which CSS property controls text overflow with ellipsis?
white-space: nowrap and overflow: hidden to work.
96. Which CSS property enables GPU acceleration?
97. Which CSS feature allows styling based on user preferences?
98. Which CSS property creates a color gradient border?
border-image: linear-gradient(red, blue) 1 with border-width.
99. Which CSS function calculates values dynamically?
width: calc(100% - 20px) performs math operations.
100. Which CSS property enables aspect ratio control?
aspect-ratio: 16/9 maintains proportional dimensions.