Training Trains logo

Frontend Development Internship Interview Questions for Freshers (with Answers)

By K. Boopathikumar, CEO & Founder · 16 November 2026 · 7 min read

Frontend internship interviews test whether you can turn a design into a page that works on every screen, behaves correctly, and is usable by everyone. Expect both questions and a small hands-on task.

HTML and CSS

  • What is semantic HTML? Using tags that describe meaning, such as header, nav, main, article and button, instead of div for everything. It helps screen readers, search engines and other developers.
  • Explain the CSS box model. Every element is content, then padding, then border, then margin. box-sizing: border-box makes width include padding and border, which makes layouts easier.
  • Flexbox vs Grid? Flexbox lays items out in one direction (a row or a column). Grid handles two dimensions, rows and columns together. Use flex for toolbars and lists, grid for page layouts and card grids.
  • How do you make a page responsive? Fluid widths, flexible images, and media queries for breakpoints, designed mobile first. Test on a real phone, not only the browser resize.
  • What is specificity? The rule that decides which CSS wins: inline styles beat ids, ids beat classes, classes beat tags. Keep specificity low so styles stay easy to override.

JavaScript and the DOM

  • What is event delegation? Attaching one listener to a parent and checking event.target, instead of one listener per child. It works for items added later and uses less memory.
  • What is the difference between null and undefined? undefined means a value was never set; null means it was deliberately set to nothing.
  • What do debounce and throttle do? Debounce waits until events stop (for example, search after typing pauses). Throttle runs at most once per interval (for example, on scroll).
  • How do you fetch data and show it? Call fetch, await the JSON, then render it, while showing a loading state and an error message if it fails.

Performance and accessibility

  • How do you make a page load faster? Compress and size images correctly, lazy-load below-the-fold content, split large JavaScript bundles and cache static files.
  • What are Core Web Vitals? Google's measures of user experience: loading (LCP), responsiveness to input (INP) and visual stability (CLS).
  • How do you make a form accessible? Every input gets a visible label linked with for and id, errors are announced in text, the form works with the keyboard and colour is not the only signal.

How to answer well in the interview

  • When given a design task, build the structure in HTML first, then style it, then add behaviour.
  • Talk while you code; interviewers want your reasoning, not silent typing.
  • Show one project that works well on a phone and passes a Lighthouse check.
  • Be honest about what you used a library for and what you wrote yourself.

Next steps

Looking for an internship near Erode?

10 days to 6 months, online or at our Erode and Perundurai branches, with a verifiable certificate.

See internships →

More guides