/* Container CSS */ .container { display: flex; flex-wrap: wrap; gap: 1rem; } /* Column CSS */ .column { flex: 1 1 300px; background-color: lightgray; padding: 1rem; }
Option D uses flexbox with wrapping and flexible basis, so columns take at least 300px and wrap to next line if needed, making it responsive.
Option D uses grid but fixes columns at 50%, which is not responsive without media queries.
Option D uses float, which is outdated and less flexible.
Option D stacks columns vertically always due to flex-direction: column.
<div class="custom-button" tabindex="0" role="button">Click me</div>
Option A adds tabindex="0" so the div is focusable by keyboard and role="button" so screen readers announce it as a button. Styling :focus helps users see focus.
Option A lacks keyboard focus and role, so keyboard users and screen readers miss it.
Option A lacks tabindex, so not keyboard focusable.
Option A uses tabindex="-1", which removes keyboard focus.
:is(.btn, .link) > span, which elements will it select?The :is(.btn, .link) groups selectors .btn and .link. The > span means select elements that are direct children of those elements.
Option C correctly describes this.
Option C reverses parent and child.
Option C misses the direct child requirement.
Option C describes a parent selector, which CSS does not support.
The transition property applies to background-color changes over 0.3 seconds with easing.
On hover, background-color changes from #007BFF (bright blue) to #0056b3 (darker blue) smoothly.
Text color and border radius do not change.
The grid has 2 columns and rows of 100px height.
The container height is 200px, so it fits exactly 2 rows.
2 columns × 2 rows = 4 items fully visible.
The 5th item is outside and hidden by overflow: hidden.