HTML Interview Questions: SEO, Performance and Tooling
Twenty five questions on the parts of front end work that touch the business directly, and where a markup answer is expected rather than a marketing one.
- SQL Interview
-
HTML Interview
- HTML Interview Questions: Fundamentals
- HTML Interview Questions: Forms, Tables and Media
- HTML Interview Questions: Semantics and Accessibility
- HTML Interview Questions: SEO, Performance and Tooling
- Scenario Based Interview Questions
- Rapid Fire and Fresher Round Questions
- Live Coding and Project Explanation Rounds
Why a developer gets asked these
SEO and performance questions in a front end interview are not testing marketing knowledge. They are testing whether you understand the markup consequences: which tag affects what, and what a wrong one costs.
Questions only.
How search works
- Describe the stages between publishing a page and it appearing in search results.
- What is the difference between crawling and indexing?
- A page is blocked in
robots.txtand carries anoindextag. What actually happens? - How would you correctly remove a page from search results?
- What is an orphan page and why does it matter?
- Does Google execute JavaScript? What is the practical consequence for a client rendered page?
- What is crawl budget and when does it become a real constraint?
On page markup
- What does the
titleelement affect? Name four things. - Is the meta description a ranking factor? What does it affect?
- How long should a title and a description be, and why is the title limit not a character count?
- Why should there be one
h1per page, and what should it contain? - What does a canonical tag do? Why must it be absolute?
- Give three ways the same page ends up at several URLs.
- Should paginated pages canonicalise to page one? Explain.
- Why does the keywords meta tag not matter?
- What is structured data and what does it actually change?
- What are the rules Google enforces on structured data?
- What does
hreflangdo, and what makes a set of them invalid?
Performance
- Name the three Core Web Vitals, what each measures and the threshold for each.
- Give three markup changes that improve Largest Contentful Paint.
- What causes Cumulative Layout Shift and how do you fix each cause?
- Explain the difference between a blocking script,
deferandasync. - Where should a stylesheet be linked and why?
- What is
preloadfor, and what is the cost of getting it wrong? - What does mobile first indexing mean for content hidden on small screens?
Tooling
- How do you debug a page where the CSS is not applying? Walk through your process.
- Why is the Elements panel more reliable than view source?
- How would you find out why a form field is not reaching the server?
- What does the HTML validator catch that a browser does not tell you about?
- How would you verify that a responsive image is serving the right file?
The follow ups
| If you say | Expect |
|---|---|
Use robots.txt to hide a page | Will that remove it from search results? Why not? |
| Structured data improves ranking | Does it? What does it actually do? |
| Lazy load images | All of them? What about the hero? |
| Put scripts at the end of the body | Why not use defer in the head instead? |
| Set image dimensions | What exactly does that prevent, and what is it measured as? |
| Our Lighthouse score is 100 | What does field data say? |
A question you should ask them
Interviews go both ways. Asking how do you currently measure accessibility and performance, and is it in CI? tells you a great deal about how the team works - and signals that you think about it as a continuous thing rather than a launch task.
Practice
- Answer all thirty out loud.
- Run Lighthouse on a page you built and be ready to discuss the results.
- Prepare one specific story about a performance or SEO problem you diagnosed.
- Practise the debugging walkthrough in question 26 while actually doing it.