Web developer interview questions and answers
12 questions that come up in web developer interviews, each with a model answer and the reason it is asked. Plus how to prepare and what to ask back.
Short answer
Interviewers want proof that you can build pages that look right, load fast and work on a phone, and that you can explain the choices behind a site you built. They also want to know you can work with designers and clients without friction. Below are 12 questions web developer candidates get asked, with a model answer for each and what the interviewer is really checking. Know your number too: live postings put the median web developer pay at $97,875 a year.
12 web developer interview questions
Four on skills, four on how you have behaved, two on what you would do, two on why this role. Answers are a shape to make your own, not a script.
- 1
Skills
A client says their homepage feels slow on mobile. How would you find the cause and fix it?
What they are checking. This checks whether you know what actually makes pages slow and how to measure it rather than guess.
Model answer
I would open the page on a real phone over a normal connection first, because the feel matters more than a lab score. Then I would run a performance audit and look at the biggest offenders, which are usually uncompressed images, fonts that block rendering, and scripts loaded before they are needed. I would resize and lazy load the images, set the fonts to swap in, and defer anything that is not needed for the first view. After each change I would measure again so I can show the client a before and after. Most slow homepages come down to a hero image that is far too large.
- 2
Skills
How do you make sure a layout works across screen sizes without writing a separate version for each screen size?
What they are checking. They want to hear that you build flexible layouts by default and understand modern layout tools.
Model answer
I start from the smallest screen and let the layout grow, using flexible grids and relative units rather than fixed pixel widths. Modern layout features let me describe how items should wrap and fill space, so most of the work is done without breakpoints at all. I add breakpoints only where the content truly needs a different arrangement, like turning a stacked list into columns. Then I test on real devices, not just by dragging the browser edge. Content that is readable without zooming is the bar I hold myself to.
- 3
Skills
What does accessibility mean in practice when you build a form?
What they are checking. The interviewer is checking whether you treat accessibility as part of the job or as an afterthought.
Model answer
Every input gets a proper label that is linked to it, not just placeholder text that disappears when you type. Errors are announced to screen readers and shown next to the field with words, not only a red border. I make sure the whole form can be completed with a keyboard in a sensible order and that focus is visible. I also check colour contrast on buttons and error states. When I test with a screen reader myself I nearly always find something I missed.
- 4
Skills
How do you decide between building something with plain code and reaching for a framework or plugin?
What they are checking. They want to see judgement about dependencies and long term maintenance, not loyalty to a tool.
Model answer
I ask how long the site needs to live and who will maintain it after me. For a small marketing site, plain markup and a little script often beats a framework that will need updating every few months. For an app with lots of state and interactive views, a framework saves me from rebuilding the same plumbing. With plugins I check how recently they were updated and how big they are before adding them. I have removed more dependencies than I have added over the years.
- 5
Behaviour
Tell me about a time a designer handed you a design that was hard to build. How did you handle it?
What they are checking. This shows how you work with designers and whether you protect the design intent while being practical.
Model answer
A designer once gave me a layout with overlapping cards that moved as you scrolled, which looked wonderful in the mockup but would have been heavy and awkward on phones. Instead of saying no, I built a quick rough version so we could both feel the problem on a real device. We agreed to keep the effect on larger screens and use a simpler stacked version on mobile. The designer appreciated being shown rather than told. Now I ask to join design reviews early so these conversations happen before the mockup is final.
- 6
Behaviour
Describe a time a site you built broke after launch. What did you do?
What they are checking. They are looking for ownership and a sensible response under pressure.
Model answer
A contact form on a client site silently stopped sending after their email provider changed a setting. The client only noticed when a customer phoned to ask why nobody had replied. I apologised, fixed the connection the same day, and then checked the form by submitting a test message. I also added a weekly check that alerts us if submissions stop arriving. I learned that anything that quietly fails needs a watchdog.
- 7
Behaviour
Tell me about a time you had to explain a technical limitation to a non technical client.
What they are checking. Web developers talk to clients often, so they want clear and patient communication.
Model answer
A client wanted their site to show live stock levels from a shop system that had no way to share data. I avoided jargon and used a comparison: the shop system was a locked room with no door, and we would need the vendor to build one. I laid out the options with rough effort for each, including a manual update they could do themselves in the meantime. They chose the manual route and later paid for the proper connection once the vendor added it. Making the limitation concrete turned frustration into a plan.
- 8
Behaviour
Give an example of feedback you received on your code or your work and what you did with it.
What they are checking. This checks whether you can take criticism and grow from it.
Model answer
A senior developer pointed out that my stylesheets were full of overrides fighting each other, which made every small change risky. It stung, but she was right. I asked her to show me how she structured hers and spent a weekend reorganising a project using a clear naming approach. The next review was much smoother and I have kept that structure since. I now ask for that kind of blunt feedback early rather than late.
- 9
Situation
The client wants a feature that will hurt page speed and search ranking. What do you do?
What they are checking. They want to see that you advise the client honestly rather than just saying yes.
Model answer
I would explain plainly what the feature would cost in load time and what that tends to do to their search visibility and conversion. Then I would offer alternatives that give them most of what they want, such as loading the feature only after the main content or only on certain pages. If they still want it, I build it, because it is their site, but I put my advice in writing. Often the real goal is something simpler than the feature they asked for, and finding that out saves everyone time.
- 10
Situation
You join a project with messy, undocumented code and a deadline next week. How do you approach it?
What they are checking. This tests how you work in imperfect conditions without making them worse.
Model answer
I would resist the urge to rewrite anything and instead map what exists: which files matter, what the build does, and where the deadline features live. I would get the site running locally and make a tiny change to prove the pipeline works end to end. Then I would make the smallest changes needed for the deadline and write notes as I go so the next person suffers less. After the deadline I would propose a short list of clean ups in order of risk. Messy code is normal, and panicking about it never helps.
- 11
Motivation
What draws you to working on our kind of websites rather than another type of development?
What they are checking. They are checking whether you understand their work and want it specifically.
Model answer
I like the fact that a website is something a real person opens on a bus, and whether it works for them is obvious within seconds. Your studio builds sites for small businesses, and I enjoy that scale because my decisions have a visible effect on someone's livelihood. I looked at a few of your recent launches and noticed they are fast and simple on a phone, which is exactly how I like to build. I would rather do that well than build internal tools nobody chooses to use.
- 12
Motivation
How do you keep your skills current when the web changes so often?
What they are checking. The interviewer wants a sustainable habit, not a list of buzzwords.
Model answer
I follow a small number of people who explain browser changes clearly and I read the release notes when a major browser ships something new. Rather than chase every new framework, I build a tiny side project when something looks genuinely useful, so I know its rough edges before I use it for a client. I also keep a notes file of things I had to look up, which tells me where my gaps are. That mix keeps me current without burning out.
Red flags interviewers notice
- Showing a portfolio of sites that are broken or slow on a phone.
- Not knowing which parts of a shown project you built yourself.
- Dismissing accessibility as something only big companies need.
- Trashing a previous client or agency during the conversation.
The week before
- Open every site in your portfolio on a phone and fix anything broken.
- Prepare to explain the hardest problem in each project in plain language.
- Audit the company's own website and note things you might improve.
- Refresh the layout, responsive and accessibility basics with a small practice page.
- Ready a story about a client disagreement and how you resolved it.
Questions to ask them
- Who owns the design, and how early do developers join design discussions?
- How do you handle performance and accessibility before a site goes live?
- What does a typical project look like from brief to launch here?
- How much contact will I have with clients directly?
Looking for web developer roles? We apply, you interview.
AI agents find the roles and tailor your CV to each one. Human agents apply, answer the screening questions, message recruiters and follow up, in your name. You relax with your family and take the interview calls.
Interviews guaranteed on the main plan
We keep hunting at no extra cost until you are in interviews for roles you agreed to.
$1,000 once upfront fee + half of first month's salary, only after you are hired and paid
Or $350 a month, or $250 for 15 days.
Every application checked by a person
No blank screening answers, no bot forms.
Web developer interviews: common questions
How many interview stages are there for a web developer role?
+
Typically a call with a recruiter or founder, then a technical conversation where you walk through your portfolio, and often a short build task. Agencies sometimes add a chat with a designer or project manager. Ask what each stage covers so you can bring the right examples.
Is there a coding test for web developer interviews?
+
Many employers ask you to build a small page or component from a design, either live or as a take home. They care about clean structure, responsive behaviour and attention to the brief as much as finished polish. Comment your decisions briefly so the reviewer understands your thinking.
What should I bring or have ready for a web developer interview?
+
Have your portfolio open in a browser with the sites loaded and working, plus a link to code you are proud of. For remote interviews, check that screen sharing works and close unrelated tabs. A short list of questions about their process shows you take the work seriously.
What salary should I ask for as a web developer?
+
Live job postings show a median of $97,875 a year in US dollars, with most offers between $58,050 and $127,875. Open with the median for your city and seniority, and let the employer name a figure first where you can. The salary page has the city bands.
Web developer: the rest of the picture
Web developer salary
Median pay by city and seniority, from live postings.
Web developer job description
A ready template with duties, requirements and hiring tips.
Web developer resume example
A full example plus the words applicant systems look for.
Web developer staffing agency
Hire vetted people, or get leads if your agency places them.
Getting interviews is the hard part. We handle that.
We find the roles, tailor your CV, apply and follow up. You prepare with this page and turn up.