SEO: Essential <head> Metadata
Solution idea
This is a realistic production check: you can have “valid HTML” that still fails basic SEO/mobile standards. The fix is to complete the <head> with the small set of tags almost every team expects in reviews: charset, viewport, meaningful title, and meta description—while keeping styling in the external CSS file.
Public interview reports
These public, self-reported interview accounts informed this practice version. The exercise is modelled on reported rounds, not copied from them, and the reports are not verified official questions or endorsements.
- Taro: GitLab frontend developer interview, May 2022
One account lists the question of which meta tag makes a web page responsive. This item practises a correct document head, including the viewport meta tag.
Reported in a public GitLab interview account. GitLab frontend interview questions
Solution
Overview
This is a realistic production check: you can have “valid HTML” that still fails basic SEO/mobile standards. The fix is to complete the <head> with the small set of tags almost every team expects in reviews: charset, viewport, meaningful title, and meta description—while keeping styling in the external CSS file.
Approach 1 – Minimal production <head>
Add UTF-8 encoding first, then the viewport meta for mobile. Write a title that includes the product name plus clear intent (what the page is about). Add a short, human-readable description (one sentence) describing the value. Keep CSS loaded via the existing external stylesheet link and avoid <style>/<script> for this task.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>
FrontendAtlas – Frontend Interview Practice
</title>
<meta
name="description"
content="Practice real interview-style frontend tasks with clear solutions and explanations."
>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<main class="card">
<h1>
FrontendAtlas
</h1>
<p class="muted">
Interview-style frontend practice: coding tasks, explanations, and reviewable solutions.
</p>
</main>
</body>
</html>body {
font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
margin: 2rem;
line-height: 1.6;
}
.card {
border: 1px solid #2a2a2a;
border-radius: 12px;
padding: 16px;
max-width: 760px;
}
.muted {
opacity: 0.7;
}Notes & Pitfalls
Putting <title> in <body> instead of <head> (invalid placement). Skipping the viewport meta, causing mobile pages to render zoomed-out. Using a generic title like “Home” instead of “Brand – page intent”. Writing a meta description that is empty, too vague, or stuffed with keywords.
Order in <head> is typically: charset early, then viewport, then title/description, then CSS link. Meta description should be a readable summary (roughly 1 sentence).
Resources
Similar questions
Guides
Preparing for interviews? Use Frontend Coding Challenges first, then move into a concrete Study Plan before targeted Company Prep.
Built in public
The code behind FrontendAtlas lives on GitHub. A star helps other frontend engineers find it.