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.

HardTechnical
90 practiced

You inherit interactive charts implemented with canvas that have no accessible DOM. Create a remediation plan to make charts accessible: include adding data tables, providing keyboard navigation/exploration mode, aria descriptions and labels, announcing updates via live regions, and consider trade-offs between converting to SVG versus adding an offscreen accessible DOM.

EasyTechnical
73 practiced

Compare and contrast the CSS sizing units: px, %, em, rem, vw, and vh. For each unit describe how it is calculated, typical use cases in responsive layouts (e.g., layout sizing, typography, spacing), and one common pitfall. Provide a concise example where combining units (for example rem + vw) achieves a fluid, responsive result.

EasyTechnical
134 practiced

Create an accessibility checklist (5–8 items) you would include in a design spec for interactive components (buttons, inputs, dialogs). For each item, briefly explain why it's important.

MediumTechnical
85 practiced

Explain cross-origin resource constraints that affect designers (e.g., embedding fonts, images, iframes). Provide two examples of design features that may break under CORS and how you would mitigate them.

EasyTechnical
70 practiced

Write the minimum HTML and CSS (no JavaScript) to implement a responsive two-column layout using Flexbox. Requirements:

  • On viewports >= 600px show two columns (left and right), each taking 50% of the row with a 16px gap.
  • On viewports < 600px stack into a single column.
  • Ensure images do not overflow their column and text wraps correctly.
    Assume modern browser support; provide accessible semantic HTML and the CSS rules.

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.