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.

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

  1. Describe the stages between publishing a page and it appearing in search results.
  2. What is the difference between crawling and indexing?
  3. A page is blocked in robots.txt and carries a noindex tag. What actually happens?
  4. How would you correctly remove a page from search results?
  5. What is an orphan page and why does it matter?
  6. Does Google execute JavaScript? What is the practical consequence for a client rendered page?
  7. What is crawl budget and when does it become a real constraint?

On page markup

  1. What does the title element affect? Name four things.
  2. Is the meta description a ranking factor? What does it affect?
  3. How long should a title and a description be, and why is the title limit not a character count?
  4. Why should there be one h1 per page, and what should it contain?
  5. What does a canonical tag do? Why must it be absolute?
  6. Give three ways the same page ends up at several URLs.
  7. Should paginated pages canonicalise to page one? Explain.
  8. Why does the keywords meta tag not matter?
  9. What is structured data and what does it actually change?
  10. What are the rules Google enforces on structured data?
  11. What does hreflang do, and what makes a set of them invalid?

Performance

  1. Name the three Core Web Vitals, what each measures and the threshold for each.
  2. Give three markup changes that improve Largest Contentful Paint.
  3. What causes Cumulative Layout Shift and how do you fix each cause?
  4. Explain the difference between a blocking script, defer and async.
  5. Where should a stylesheet be linked and why?
  6. What is preload for, and what is the cost of getting it wrong?
  7. What does mobile first indexing mean for content hidden on small screens?

Tooling

  1. How do you debug a page where the CSS is not applying? Walk through your process.
  2. Why is the Elements panel more reliable than view source?
  3. How would you find out why a form field is not reaching the server?
  4. What does the HTML validator catch that a browser does not tell you about?
  5. How would you verify that a responsive image is serving the right file?

The follow ups

If you sayExpect
Use robots.txt to hide a pageWill that remove it from search results? Why not?
Structured data improves rankingDoes it? What does it actually do?
Lazy load imagesAll of them? What about the hero?
Put scripts at the end of the bodyWhy not use defer in the head instead?
Set image dimensionsWhat exactly does that prevent, and what is it measured as?
Our Lighthouse score is 100What 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

  1. Answer all thirty out loud.
  2. Run Lighthouse on a page you built and be ready to discuss the results.
  3. Prepare one specific story about a performance or SEO problem you diagnosed.
  4. Practise the debugging walkthrough in question 26 while actually doing it.

Useful resources

Hand picked references for this topic
Written by Lorens Mishra

Default administrator account created by the installer.

Discussion

0 comments
Sign in to join the discussion.

No comments yet. Be the first to say something.