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.

HardTechnical
91 practiced

Create a responsive layout that uses CSS Grid for modern browsers to produce a staggered card arrangement on large screens and provides a graceful Flexbox fallback for older browsers without Grid. Requirements: same HTML must work for both, layout collapses to a single column on mobile, and grid rules should be applied only when supported. Provide HTML and CSS and explain the feature-detection approach.

EasyTechnical
71 practiced

Explain mobile-first versus desktop-first breakpoint strategies when writing media queries. Provide examples of both approaches using min-width and max-width and discuss the maintenance, cascade, and size implications for a growing codebase.

MediumTechnical
81 practiced

Using SCSS (Sass), write a reusable button component that supports primary and secondary variants, responsive padding, theme color variables, and a mixin for a hover shadow effect. Show variable declarations, mixin usage, and the component structure in SCSS only, and explain how to keep the output CSS maintainable.

MediumTechnical
85 practiced

Describe what a CSS stacking context is and provide one example where ignoring stacking context causes a UI bug in a modal or dropdown.

HardTechnical
124 practiced

How would you design responsive CSS that properly supports right-to-left (RTL) languages and long translated strings? Cover use of CSS logical properties (margin-inline, padding-inline-start), mirroring layouts and icons, typography adjustments for different scripts, and a testing workflow to validate RTL across breakpoints and localization pipelines.

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.