HTML & CSS
HTML
Semantic markup, script loading, nesting rules, data attributes, viewport, form validation
CSS Selectors
Combinators, attribute selectors, :nth-child vs :nth-of-type, :focus-visible, pseudo-classes vs pseudo-elements, :has(), right-to-left matching
Specificity and the Cascade
Cascade order, specificity, :is() / :where() / :has(), nesting, @layer, inheritance and the inherit / initial / unset / revert keywords
Box Model
Content, padding, border and margin, box-sizing, margin collapsing, block vs inline, block formatting context, overflow, logical properties
Flexbox
Main and cross axes, container and item properties, flex-grow / shrink / basis and flex 1, gap and wrapping, the min-width trap, order
CSS Grid
Tracks and fr, repeat() with auto-fill vs auto-fit, line placement and grid areas, implicit grid, subgrid, Grid vs Flexbox
Positioning and z-index
position values, containing block, why sticky does not stick, stacking context and z-index, top layer, anchor positioning, ways to center an element
Responsive Design
Mobile-first media queries and range syntax, CSS units, clamp() / min() / max(), container queries, srcset and sizes vs picture, user preference queries
CSS Custom Properties
CSS variables, var() with a fallback, cascade and inheritance, invalid at computed-value time, @property, theming with light-dark() and color-mix(), vs Sass variables
CSS Transitions and Animations
Transitions vs keyframe animations, why to animate transform and opacity, will-change, CSS vs JavaScript animations, reduced motion