Frontend Fundamentals: HTML, CSS, and Responsive Styling Questions
The core web-platform skills behind interfaces: semantic HTML, the CSS box model, cascade and specificity, layout systems (flexbox, grid), and responsive styling. Covers writing accessible, well-structured markup and building responsive layouts that hold up across viewports. The implementation foundation for UI work.
What is the CSS box-sizing property and why might you prefer box-sizing: border-box in a design system? Provide an example where content-box causes layout surprises.
Explain what Cumulative Layout Shift (CLS) is and provide three practical guidelines a designer should follow to minimize CLS in product layouts.
You need to create a design token set for color, spacing, and typography that supports theming (light/dark) and high contrast modes. Describe the token structure, how tokens map to CSS (or design tool), and accessibility checks you would perform.
Describe common touch and scroll interaction differences between iOS Safari and Android Chrome that can affect UX (e.g., scrolling inertia, overscroll, position: fixed). How should designers account for these platform differences?
Describe what a CSS stacking context is and provide one example where ignoring stacking context causes a UI bug in a modal or dropdown.
Unlock Full Question Bank
Get access to all 34 Frontend Fundamentals: HTML, CSS, and Responsive Styling interview questions and detailed answers.
Sign in to ContinueJoin thousands of developers preparing for their dream job.