121. Which CSS property creates print-specific styles?
- a) @media print
- b) @print
- c) media="print"
- d) print-style
@media print { ... } targets printed documents.
Test your knowledge of CSS with these interactive multiple-choice questions.
121. Which CSS property creates print-specific styles?
@media print { ... } targets printed documents.
122. Which CSS property hides elements when printing?
@media print to hide non-essential content.
123. Which CSS feature supports right-to-left (RTL) languages?
direction: rtl flips layout, while writing-mode handles vertical text.
124. Which CSS pseudo-element targets the first line of every paragraph?
125. Which CSS selector targets visited links?
126. Which CSS pseudo-class targets form elements with invalid values?
required, pattern, and type validation.
127. Which CSS feature creates a "sticky" table header?
th { position: sticky; top: 0 } keeps headers visible.
128. Which CSS property enables smooth scrolling anchor links?
scroll-behavior: smooth creates animated scrolling.
129. Which CSS feature creates a color gradient border?
border-image: linear-gradient(red, blue) 1 with border-width.
130. Which CSS property enables GPU acceleration?
131. Which CSS property creates a drop cap effect?
p::first-letter { font-size: 3em; float: left }.
132. Which CSS feature detects touchscreen devices?
133. Which CSS property creates a masking effect?
clip-path uses shapes, mask-image uses alpha channels.
134. Which CSS function creates conditional styles?
135. Which CSS property controls overscroll behavior?
overscroll-behavior: contain prevents scroll bleed.
136. Which CSS feature creates a morphing animation?
clip-path shapes creates morph effects.
137. Which CSS property creates a glassmorphism effect?
backdrop-filter: blur() with semi-transparency.
138. Which CSS feature improves font rendering on MacOS?
-webkit-font-smoothing: antialiased enhances thin text.
139. Which CSS property creates a reflection effect?
-webkit-box-reflect: below.
140. Which CSS feature creates a dark/light mode toggle?