InterviewStack.io LogoInterviewStack.io

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.

EasyTechnical
88 practiced

Describe the CSS box model in detail: content, padding, border, and margin. Explain how the box-sizing property (content-box vs border-box) changes width/height calculations, give examples of layout problems that arise when mixing strategies, and recommend a safe global reset approach for consistent sizing across components.

MediumTechnical
129 practiced

How would you design form validation UX that balances accessibility, discoverability of errors, and minimal annoyance? Provide rules for inline validation, summarizing errors, and focus behavior after submission.

MediumTechnical
86 practiced

Implement fluid typography for an H1 using CSS clamp() so the font size scales between 20px and 48px across viewport widths between 320px and 1600px. Provide the exact CSS declaration and a short explanation of the math behind the clamp() values you chose.

HardTechnical
62 practiced

Explain how compositing layers work in browsers and how properties like transform, will-change, and opacity can create new layers. When is creating layers beneficial and when can it harm performance?

EasyTechnical
125 practiced

List three common browser rendering performance pitfalls a designer should be aware of when specifying large visual changes (e.g., animations, shadows, transforms) in mockups.

Unlock Full Question Bank

Get access to all Frontend Fundamentals: HTML, CSS, and Responsive Styling interview questions and detailed answers.

Sign in to Continue

Join thousands of developers preparing for their dream job.