Skip to content

HTML/CSS (Interview Prep)

A structured roadmap of HTML/CSS fundamentals that matter most in frontend interviews. Start top-to-bottom.

Series: HTML/CSS

Progress: 0/9

Start here

CSS Specificity: How Styles Actually Win

Specificity rules, common traps, and practical strategies to avoid fighting CSS.

How to Study the HTML/CSS Track

Strong HTML and CSS fundamentals separate senior frontend engineers from framework-only developers. Live UI coding rounds and accessibility reviews routinely test whether you choose semantic landmarks that work with screen readers and keyboard navigation, understand how the browser computes cascade specificity and stacking contexts, and build resilient layouts without fragile pixel hacks.

This track covers the complete layout and semantics foundation tested in frontend interviews: semantic HTML5 document structure, the CSS box model and box-sizing rules, cascade and specificity calculation, Flexbox vs two-dimensional CSS Grid architecture, positioning and z-index stacking contexts, responsive fluid typography, container queries, and WCAG keyboard/ARIA accessibility patterns.

What Interviewers Evaluate in This Track

  • Choosing between Flexbox (one-dimensional content distribution) and CSS Grid (two-dimensional page and card layouts)
  • Resolving specificity conflicts, stacking context bugs (z-index, transform, isolation), and containing-block traps
  • Building accessible forms, modals, and interactive widgets with semantic HTML, focus management, and ARIA attributes